Advertisement
Guest User

Imp's Blood Pact Autocast fix

a guest
Sep 21st, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. if (spellInfo->IsPositive())
  2. {
  3. if (spellInfo->CanBeUsedInCombat())
  4. {
  5. // Check if we're in combat or commanded to attack
  6. if (!me->IsInCombat() && !me->GetCharmInfo()->IsCommandAttack())
  7. // Imp's Blood Pact
  8. if (spellInfo->SpellFamilyName != SPELLFAMILY_WARLOCK && spellInfo->SpellIconID != 541)
  9. continue;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement