diff options
| author | megamage <none@none> | 2009-08-29 14:58:45 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-29 14:58:45 -0500 |
| commit | 2a4c9bcaf910430cdf3070987ce085da3c2666da (patch) | |
| tree | a9498395a05c8306726142a8dea856bb79f173d2 /src/bindings/scripts | |
| parent | 3aabef53ee48e67596d2920cbbc17b9e2238a2cc (diff) | |
*Make position as a class;
--HG--
branch : trunk
Diffstat (limited to 'src/bindings/scripts')
4 files changed, 5 insertions, 5 deletions
diff --git a/src/bindings/scripts/scripts/northrend/naxxramas/boss_gluth.cpp b/src/bindings/scripts/scripts/northrend/naxxramas/boss_gluth.cpp index d9f49b44ed9..9028d92639a 100644 --- a/src/bindings/scripts/scripts/northrend/naxxramas/boss_gluth.cpp +++ b/src/bindings/scripts/scripts/northrend/naxxramas/boss_gluth.cpp @@ -25,7 +25,7 @@ #define MOB_ZOMBIE 16360 -const float PosSummon[3][4] = +const Position PosSummon[3] = { {3267.9, -3172.1, 297.42, 0.94}, {3253.2, -3132.3, 297.42, 0}, diff --git a/src/bindings/scripts/scripts/northrend/naxxramas/boss_gothik.cpp b/src/bindings/scripts/scripts/northrend/naxxramas/boss_gothik.cpp index 1b9aac9743d..53482bd963f 100644 --- a/src/bindings/scripts/scripts/northrend/naxxramas/boss_gothik.cpp +++ b/src/bindings/scripts/scripts/northrend/naxxramas/boss_gothik.cpp @@ -82,14 +82,14 @@ enum Events #define POS_LIVE 3 #define POS_DEAD 5 -const float PosSummonLive[POS_LIVE][4] = +const Position PosSummonLive[POS_LIVE] = { {2669.7, -3430.9, 268.56, 1.6}, {2692.0, -3430.9, 268.56, 1.6}, {2714.1, -3430.9, 268.56, 1.6}, }; -const float PosSummonDead[POS_DEAD][4] = +const Position PosSummonDead[POS_DEAD] = { {2725.1, -3310.0, 268.85, 3.4}, {2699.3, -3322.8, 268.60, 3.3}, diff --git a/src/bindings/scripts/scripts/northrend/naxxramas/boss_kelthuzad.cpp b/src/bindings/scripts/scripts/northrend/naxxramas/boss_kelthuzad.cpp index aeff698335c..bf0f0b24606 100644 --- a/src/bindings/scripts/scripts/northrend/naxxramas/boss_kelthuzad.cpp +++ b/src/bindings/scripts/scripts/northrend/naxxramas/boss_kelthuzad.cpp @@ -83,7 +83,7 @@ enum Event #define MOB_WEAVER 16429 // Soul Weavers #define MOB_ICECROWN 16441 // Guardians of Icecrown -float Pos[12][4] = +const Position Pos[12] = { {3783.272705, -5062.697266, 143.711203,3.617599},//LEFT_FAR {3730.291260, -5027.239258,143.956909,4.461900},//LEFT_MIDDLE diff --git a/src/bindings/scripts/scripts/northrend/naxxramas/boss_sapphiron.cpp b/src/bindings/scripts/scripts/northrend/naxxramas/boss_sapphiron.cpp index 635d064ce65..9813fddcd6a 100644 --- a/src/bindings/scripts/scripts/northrend/naxxramas/boss_sapphiron.cpp +++ b/src/bindings/scripts/scripts/northrend/naxxramas/boss_sapphiron.cpp @@ -368,7 +368,7 @@ struct TRINITY_DLL_DECL boss_sapphironAI : public BossAI if (GameObject* pGo = GameObject::GetGameObject(*me, itr->second)) { if (pGo->IsInBetween(me, target, 2.0f) - && me->GetExactDistance2d(target->GetPositionX(), target->GetPositionY()) - me->GetExactDistance2d(pGo->GetPositionX(), pGo->GetPositionY()) < 5.0f) + && me->GetExactDist2d(target->GetPositionX(), target->GetPositionY()) - me->GetExactDist2d(pGo->GetPositionX(), pGo->GetPositionY()) < 5.0f) { target->ApplySpellImmune(0, IMMUNITY_ID, SPELL_FROST_EXPLOSION, true); targets.push_back(target); |
