mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix(Scripts/SunwellPlateau): Entropius' darkness spawn height (#21914)
This commit is contained in:
@@ -372,7 +372,7 @@ class spell_muru_blackhole : public SpellScript
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
WorldLocation summonPos = *GetExplTargetDest();
|
WorldLocation summonPos = *GetExplTargetDest();
|
||||||
float destZ = summonPos.GetPositionZ() - GetCaster()->GetMapWaterOrGroundLevel(GetCaster()->GetPosition());
|
float destZ = summonPos.GetPositionZ() - GetCaster()->GetMapWaterOrGroundLevel(summonPos);
|
||||||
Position offset = { 0.0f, 0.0f, -destZ, 0.0f};
|
Position offset = { 0.0f, 0.0f, -destZ, 0.0f};
|
||||||
summonPos.RelocateOffset(offset);
|
summonPos.RelocateOffset(offset);
|
||||||
SetExplTargetDest(summonPos);
|
SetExplTargetDest(summonPos);
|
||||||
|
|||||||
Reference in New Issue
Block a user