[11554] Add some "tail" data for SMSG_CAST_FAILED and SMSG_PET_CAST_FAILED

Not all SPELL_FAILED_* are used currently (but ok for future implementation)

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-05-28 13:05:16 +02:00
parent 3beb20b67d
commit 6b3359575b
3 changed files with 24 additions and 3 deletions

View file

@ -9870,8 +9870,17 @@ void Unit::SendPetCastFail(uint32 spellid, SpellCastResult msg)
data << uint8(0); // cast count?
data << uint32(spellid);
data << uint8(msg);
// uint32 for some reason
// uint32 for some reason
// More cases exist, see Spell::SendCastResult (can possibly be unified)
switch(msg)
{
case SPELL_FAILED_NOT_READY:
data << uint32(0); // unknown
break;
default:
break;
}
((Player*)owner)->GetSession()->SendPacket(&data);
}