Merge pull request #403 from noudess/master

Fix proc messages for undead proc against non-undead.
This commit is contained in:
Michael Cook (mackal) 2015-05-01 20:27:41 -04:00
commit 1f56c7476e

View File

@ -1480,7 +1480,10 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce
{
//invalid target
Log.Out(Logs::Detail, Logs::Spells, "Spell %d canceled: invalid target of body type %d (undead)", spell_id, mob_body);
if(!spell_target)
Message_StringID(13,SPELL_NEED_TAR);
else
Message_StringID(13,CANNOT_AFFECT_NPC);
return false;
}
CastAction = SingleTarget;