Core/Scripts: Fixed build of misc scripts, only zone_* and instance_* remain

This commit is contained in:
Shauren committed 2014-09-15 22:52:09 +02:00
1 parent a3d8f1d879
commit 48deb443f9
44 files changed
+263 -289

No files matched your search

+2 -2
View File
@@ -59,7 +59,7 @@ class npc_pet_dk_ebon_gargoyle : public CreatureScript
Initialize();
CasterAI::InitializeAI();
uint64 ownerGuid = me->GetOwnerGUID();
ObjectGuid ownerGuid = me->GetOwnerGUID();
if (!ownerGuid)
return;
@@ -69,7 +69,7 @@ class npc_pet_dk_ebon_gargoyle : public CreatureScript
Trinity::UnitListSearcher<Trinity::AnyUnfriendlyUnitInObjectRangeCheck> searcher(me, targets, u_check);
me->VisitNearbyObject(30.0f, searcher);
for (std::list<Unit*>::const_iterator iter = targets.begin(); iter != targets.end(); ++iter)
if ((*iter)->GetAura(SPELL_DK_SUMMON_GARGOYLE_1, ownerGuid))
if ((*iter)->HasAura(SPELL_DK_SUMMON_GARGOYLE_1, ownerGuid))
{
me->Attack((*iter), false);
break;