Created
April 5, 2010 13:38
-
-
Save SkirnirMaNGOS/356341 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/sc_creature.cpp b/include/sc_creature.cpp | |
index 72f09dd..2f68396 100644 | |
--- a/include/sc_creature.cpp | |
+++ b/include/sc_creature.cpp | |
@@ -449,7 +449,7 @@ void ScriptedAI::DoTeleportPlayer(Unit* pUnit, float fX, float fY, float fZ, flo | |
Unit* ScriptedAI::DoSelectLowestHpFriendly(float fRange, uint32 uiMinHPDiff) | |
{ | |
- CellPair p(MaNGOS::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); | |
+ CellPair p(TerrainMgr::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); | |
Cell cell(p); | |
cell.data.Part.reserved = ALL_DISTRICT; | |
cell.SetNoCreate(); | |
@@ -472,7 +472,7 @@ Unit* ScriptedAI::DoSelectLowestHpFriendly(float fRange, uint32 uiMinHPDiff) | |
std::list<Creature*> ScriptedAI::DoFindFriendlyCC(float fRange) | |
{ | |
- CellPair p(MaNGOS::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); | |
+ CellPair p(TerrainMgr::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); | |
Cell cell(p); | |
cell.data.Part.reserved = ALL_DISTRICT; | |
cell.SetNoCreate(); | |
@@ -491,7 +491,7 @@ std::list<Creature*> ScriptedAI::DoFindFriendlyCC(float fRange) | |
std::list<Creature*> ScriptedAI::DoFindFriendlyMissingBuff(float fRange, uint32 uiSpellId) | |
{ | |
- CellPair p(MaNGOS::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); | |
+ CellPair p(TerrainMgr::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); | |
Cell cell(p); | |
cell.data.Part.reserved = ALL_DISTRICT; | |
cell.SetNoCreate(); | |
@@ -512,7 +512,7 @@ Player* ScriptedAI::GetPlayerAtMinimumRange(float fMinimumRange) | |
{ | |
Player* pPlayer = NULL; | |
- CellPair pair(MaNGOS::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); | |
+ CellPair pair(TerrainMgr::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); | |
Cell cell(pair); | |
cell.data.Part.reserved = ALL_DISTRICT; | |
cell.SetNoCreate(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment