mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-31 17:43:47 +00:00
fix(Scripts/Ulduar): YoggSaron get z for tentacles spawn with GetHeight (#24515)
This commit is contained in:
@@ -558,8 +558,10 @@ public:
|
||||
{
|
||||
uint32 dist = urand(38, 48);
|
||||
float o = rand_norm() * M_PI * 2;
|
||||
float Zplus = (dist - 38) / 6.5f;
|
||||
if (Creature* cr = me->SummonCreature(entry, me->GetPositionX() + dist * cos(o), me->GetPositionY() + dist * std::sin(o), 327.2 + Zplus, 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 5000))
|
||||
float spawnX = me->GetPositionX() + dist * cos(o);
|
||||
float spawnY = me->GetPositionY() + dist * std::sin(o);
|
||||
float spawnZ = me->GetMap()->GetHeight(me->GetPhaseMask(), spawnX, spawnY, 330.0f);
|
||||
if (Creature* cr = me->SummonCreature(entry, spawnX, spawnY, spawnZ, 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 5000))
|
||||
{
|
||||
cr->CastSpell(cr, SPELL_TENTACLE_ERUPT, true);
|
||||
cr->CastSpell(cr, SPELL_VOID_ZONE_SMALL, true);
|
||||
|
||||
Reference in New Issue
Block a user