Skip to content

Commit

Permalink
Nobody saw that.
Browse files Browse the repository at this point in the history
  • Loading branch information
Treeston committed Feb 24, 2016
1 parent 4e4b2b9 commit 1fbe797
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/server/game/AI/PlayerAI/PlayerAI.cpp
Expand Up @@ -119,8 +119,6 @@ void PlayerAI::DoRangedAttackIfReady()
}
}

std::cout << "Selected " << rangedAttackSpell << std::endl;

if (!rangedAttackSpell)
return;

Expand Down
Expand Up @@ -442,7 +442,7 @@ class spell_tyrannus_overlord_brand : public SpellScriptLoader
Player* pTarget = GetTarget()->ToPlayer();
oldAI = pTarget->AI();
oldAIState = pTarget->IsAIEnabled;
GetTarget()->SetAI(static_cast<UnitAI*>(new player_overlord_brandAI(pTarget, GetCasterGUID())));
GetTarget()->SetAI(new player_overlord_brandAI(pTarget, GetCasterGUID()));
GetTarget()->IsAIEnabled = true;
}

Expand All @@ -453,7 +453,7 @@ class spell_tyrannus_overlord_brand : public SpellScriptLoader

GetTarget()->IsAIEnabled = oldAIState;
PlayerAI* thisAI = GetTarget()->ToPlayer()->AI();
GetTarget()->SetAI(static_cast<UnitAI*>(oldAI));
GetTarget()->SetAI(oldAI);
delete thisAI;
}

Expand Down
4 changes: 2 additions & 2 deletions src/server/scripts/Spells/spell_dk.cpp
Expand Up @@ -1911,7 +1911,7 @@ class spell_dk_raise_ally : public SpellScriptLoader

oldAI = player->AI();
oldAIState = player->IsAIEnabled;
player->SetAI(static_cast<UnitAI*>(new player_ghoulAI(player, player->GetGhoulResurrectGhoulGUID())));
player->SetAI(new player_ghoulAI(player, player->GetGhoulResurrectGhoulGUID()));
player->IsAIEnabled = true;
}

Expand All @@ -1923,7 +1923,7 @@ class spell_dk_raise_ally : public SpellScriptLoader

player->IsAIEnabled = oldAIState;
PlayerAI* thisAI = player->AI();
player->SetAI(static_cast<UnitAI*>(oldAI));
player->SetAI(oldAI);
delete thisAI;

// Dismiss ghoul if necessary
Expand Down

0 comments on commit 1fbe797

Please sign in to comment.