mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
[svn] Merge from mangos.
Wed Oct 29 15:06:00034b8a34a9Mon Oct 27 14:36:42fa072d1510--HG-- branch : trunk
This commit is contained in:
@@ -166,6 +166,9 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )
|
||||
else
|
||||
unit_target = NULL;
|
||||
|
||||
if (((Creature*)pet)->GetGlobalCooldown() > 0)
|
||||
return;
|
||||
|
||||
// do not cast unknown spells
|
||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(spellid );
|
||||
if(!spellInfo)
|
||||
@@ -601,6 +604,9 @@ void WorldSession::HandleAddDynamicTargetObsoleteOpcode( WorldPacket& recvPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (pet->GetGlobalCooldown() > 0)
|
||||
return;
|
||||
|
||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(spellid);
|
||||
if(!spellInfo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user