Skip to content

Commit

Permalink
Unit: Adjust IsAttackSpeedOverridenShapeShift for vanilla
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Nov 21, 2023
1 parent bf41ff6 commit a1b0b2b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/game/Entities/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10748,8 +10748,16 @@ bool Unit::IsAttackSpeedOverridenShapeShift() const
{
// Mirroring clientside gameplay logic
if (ShapeshiftForm form = GetShapeshiftForm())
if (SpellShapeshiftFormEntry const* entry = sSpellShapeshiftFormStore.LookupEntry(form))
return entry->attackSpeed > 0;
{
switch (form)
{
case FORM_CAT:
case FORM_BEAR:
case FORM_DIREBEAR:
return true;
default: return false;
}
}

return false;
}
Expand Down

0 comments on commit a1b0b2b

Please sign in to comment.