void SetDest(SpellDestination& dest) { // Adjust effect summon position Position const offset = { frand(-7.0f, 7.0f), frand(-7.0f, 7.0f), 11.0f, 0.0f }; dest.Relocate(*GetCaster()); dest.RelocateOffset(offset); }
void SetDest(SpellDestination& dest) { Creature* creature = GetCaster()->ToCreature(); if (creature) return; // Side of the room: WEST > 366.781f (middle of the room) > EAST float ori = creature->GetPositionY() > 366.781f ? DegToRad(270) : DegToRad(90); // DB dest has no orientation field (always 0.0f). dest.RelocateOffset({ 0.0f, 0.0f, 0.0f, ori }); creature->SetHomePosition(dest._position.GetPosition()); }
void SetDest(SpellDestination& dest) { Position const offset = { 0.5f, 0.5f, 5.0f, 0.0f }; dest.RelocateOffset(offset); }
void SetDest(SpellDestination& dest) { // Adjust effect summon position Position const offset = { 0.0f, 0.0f, 20.0f, 0.0f }; dest.RelocateOffset(offset); }
void ModDestHeight(SpellDestination& dest) { // All stalactite triggers should have Z position 301.3837f, but no way to relocate (not relocateoffset!) height only. Position offset = { 0.0f, 0.0f, 50.0f, 0.0f }; dest.RelocateOffset(offset); }
void SetDest(SpellDestination& dest) { dest.RelocateOffset({ 0.0f, 0.0f, 30.0f, 0.0f }); }