Fix for target type 39 GroupNoPets.

Should no longer take hold on a pet if your targeting it when
casting spell.
This commit is contained in:
KayenEQ 2014-11-23 20:48:07 -05:00
parent 5970b0ee41
commit 3266ed98e6

View File

@ -1670,6 +1670,12 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce
} else {
spell_target = this;
}
if (spell_target && spell_target->IsPet() && spells[spell_id].targettype == ST_GroupNoPets){
Message_StringID(13,NO_CAST_ON_PET);
return false;
}
CastAction = GroupSpell;
break;
}