diff --git a/PeePee.MutatorPack/mod/scripts/vscripts/stealing.gnut b/PeePee.MutatorPack/mod/scripts/vscripts/stealing.gnut index 1e1002a..d2189ed 100644 --- a/PeePee.MutatorPack/mod/scripts/vscripts/stealing.gnut +++ b/PeePee.MutatorPack/mod/scripts/vscripts/stealing.gnut @@ -32,7 +32,7 @@ void function SwapWeapons(entity victim, entity attacker){ } void function SwapAbilities(entity victim, entity attacker){ foreach(entity offhand in attacker.GetOffhandWeapons()){ - if(attacker.GetOffhandWEapons().find(offhand) != OFFHAND_INVENTORY){ + if(attacker.GetOffhandWeapons().find(offhand) != OFFHAND_INVENTORY){ attacker.TakeWeaponNow(offhand.GetWeaponClassName())} foreach(entity offhand in victim.GetOffhandWeapons()){ int index = victim.GetOffhandWeapons().find(offhand) @@ -40,6 +40,7 @@ void function SwapAbilities(entity victim, entity attacker){ attacker.GiveOffhandWeapon(offhand.GetWeaponClassName(), index)} } } +} bool function ValidSteal(entity victim, entity attacker){ if ( !victim.IsPlayer() || !attacker.IsPlayer() || GetGameState() != eGameState.Playing ) return false