Advertisement
Guest User

Untitled

a guest
May 21st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. bool Aura::CanPeriodicTickCrit(Unit const* caster) const
  2. {
  3. if (GetSpellInfo()->HasAttribute(SPELL_ATTR2_CANT_CRIT))
  4. return false;
  5.  
  6. // need to check this attribute because it's the triggered spell that'll receive the crit chance
  7. if (GetSpellInfo()->HasAttribute(SPELL_ATTR4_INHERIT_CRIT_FROM_AURA))
  8. return true;
  9.  
  10. if (caster->HasAuraTypeWithAffectMask(SPELL_AURA_ABILITY_PERIODIC_CRIT, GetSpellInfo()))
  11. return true;
  12.  
  13. // Rupture - since 3.3.3 can crit
  14. if (GetSpellInfo()->SpellIconID == 500 && GetSpellInfo()->SpellFamilyName == SPELLFAMILY_ROGUE)
  15. return true;
  16.  
  17. return false;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement