Skip to content

Commit

Permalink
Merge pull request #777 from doug1234/TrippingBiteFix
Browse files Browse the repository at this point in the history
Fixed bug in tripping bite that would allow wildshaped druids to trip…
  • Loading branch information
doug1234 authored Jun 29, 2024
2 parents 5a26075 + b889942 commit 4def28e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tpdatasrc/tpgamefiles/scr/tpModifiers/tripping_bite.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
print "Registering Tripping Bite"

def OnDamage2(attachee, args, evt_obj):
#Check that it is an attack and not a spell to avoid spells like flame strike making trip attempts in wildshape!
action_type = evt_obj.attack_packet.action_type
if action_type != D20A_FULL_ATTACK and action_type != D20A_STANDARD_ATTACK:
return

target = evt_obj.attack_packet.target
if (target != OBJ_HANDLE_NULL):
if (target.d20_query(Q_Prone) == 0 and attachee.trip_check(target)):
Expand Down

0 comments on commit 4def28e

Please sign in to comment.