mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 12:47:07 +00:00
fix(DB/scripts): Freya - Sun beam (#3730)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1605911267657207700');
|
||||
|
||||
/*
|
||||
* Update by Silker | <www.azerothcore.org> | Copyright (C)
|
||||
*/
|
||||
|
||||
-- fix models
|
||||
UPDATE `creature_template` SET `modelid1`=23258, `modelid2`=0 WHERE `entry` IN
|
||||
(33395, 33402)
|
||||
|
||||
@@ -370,6 +370,11 @@ public:
|
||||
|
||||
void JustSummoned(Creature* cr)
|
||||
{
|
||||
if (cr->GetEntry() == NPC_FREYA_UNSTABLE_SUN_BEAM)
|
||||
{
|
||||
cr->CastSpell(cr, SPELL_UNSTABLE_SUN_VISUAL, true);
|
||||
cr->CastSpell(cr, SPELL_UNSTABLE_SUN_FREYA_DAMAGE, true);
|
||||
}
|
||||
summons.Summon(cr);
|
||||
}
|
||||
|
||||
@@ -636,10 +641,11 @@ public:
|
||||
events.RepeatEvent(45000 + urand(0, 10000));
|
||||
break;
|
||||
case EVENT_FREYA_UNSTABLE_SUN_BEAM:
|
||||
if (Creature* cr = me->SummonCreature(NPC_FREYA_UNSTABLE_SUN_BEAM, me->GetPositionX() + urand(7, 25), me->GetPositionY() + urand(7, 25), me->GetMap()->GetHeight(me->GetPositionX(), me->GetPositionY(), MAX_HEIGHT), 0, TEMPSUMMON_TIMED_DESPAWN, 10000))
|
||||
me->SummonCreature(NPC_FREYA_UNSTABLE_SUN_BEAM, me->GetPositionX() + urand(7, 25), me->GetPositionY() + urand(7, 25), me->GetMap()->GetHeight(me->GetPositionX(), me->GetPositionY(), MAX_HEIGHT), 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
|
||||
if (Is25ManRaid())
|
||||
{
|
||||
cr->CastSpell(cr, SPELL_UNSTABLE_SUN_VISUAL, true);
|
||||
cr->CastSpell(cr, SPELL_UNSTABLE_SUN_FREYA_DAMAGE, true);
|
||||
me->SummonCreature(NPC_FREYA_UNSTABLE_SUN_BEAM, me->GetPositionX() + urand(7, 25), me->GetPositionY() + urand(7, 25), me->GetMap()->GetHeight(me->GetPositionX(), me->GetPositionY(), MAX_HEIGHT), 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
|
||||
me->SummonCreature(NPC_FREYA_UNSTABLE_SUN_BEAM, me->GetPositionX() + urand(7, 25), me->GetPositionY() + urand(7, 25), me->GetMap()->GetHeight(me->GetPositionX(), me->GetPositionY(), MAX_HEIGHT), 0, TEMPSUMMON_TIMED_DESPAWN, 10000);
|
||||
}
|
||||
events.RepeatEvent(38000 + urand(0, 10000));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user