From 7615c2b7232adc571ef691c573a9645210a128d6 Mon Sep 17 00:00:00 2001 From: Nicolas Weeger Date: Sun, 29 May 2022 12:24:37 +0200 Subject: [PATCH] Fix broken weapon check --- python/events/gkill/sword_of_souls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/events/gkill/sword_of_souls.py b/python/events/gkill/sword_of_souls.py index b6d103f3c..a5b34a43c 100644 --- a/python/events/gkill/sword_of_souls.py +++ b/python/events/gkill/sword_of_souls.py @@ -6,8 +6,8 @@ killer = Crossfire.WhoIsActivator() if killer.Owner is None and killer.Type == Crossfire.Type.PLAYER: # Find the equipped weapon on the player. weap = killer.CurrentWeapon - # Don't bother with xp if weapon is missing or already at the maximum level. - if weap != None and weap.ItemPower < 115: + # Don't bother with xp if weapon is not the right one or already at the maximum level. + if weap != None and weap.Applied == 1 and weap.Cursed == 1 and weap.Title == 'of Souls' and weap.ItemPower < 115: # Get the victim -- we need to know how much exp they are worth. victim = Crossfire.WhoAmI() if victim is not None: