mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 19:37:01 +00:00
[7980] Implement item use target requirements store and check (new table item_required_target).
Signed-off-by: VladimirMangos <vladimir@getmangos.com> * Also implement this table reload * Static Spell::SendCastResult function for call not from spell code. Can be also used in scripts where need send explicitly spell cast error to client.
This commit is contained in:
parent
6d8867d0fc
commit
6a1b4e5729
18 changed files with 279 additions and 36 deletions
|
|
@ -245,19 +245,7 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )
|
|||
else
|
||||
{
|
||||
if(pet->HasAuraType(SPELL_AURA_MOD_POSSESS))
|
||||
{
|
||||
WorldPacket data(SMSG_CAST_FAILED, (4+1+1));
|
||||
data << uint8(0) << uint32(spellid) << uint8(result);
|
||||
switch (result)
|
||||
{
|
||||
case SPELL_FAILED_REQUIRES_SPELL_FOCUS:
|
||||
data << uint32(spellInfo->RequiresSpellFocus);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
SendPacket(&data);
|
||||
}
|
||||
Spell::SendCastResult(GetPlayer(),spellInfo,0,result);
|
||||
else
|
||||
pet->SendPetCastFail(spellid, result);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue