mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-04 08:07:09 +01:00
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
This commit is contained in:
@@ -38,6 +38,7 @@ EndContentData */
|
||||
#include "ScriptedGossip.h"
|
||||
#include "Cell.h"
|
||||
#include "CellImpl.h"
|
||||
#include "GridNotifiersImpl.h"
|
||||
#include "GridNotifiers.h"
|
||||
|
||||
/*######
|
||||
|
||||
@@ -33,9 +33,10 @@ EndContentData */
|
||||
#include "ScriptedGossip.h"
|
||||
#include "Player.h"
|
||||
#include "SpellInfo.h"
|
||||
#include "GridNotifiers.h"
|
||||
#include "GridNotifiersImpl.h"
|
||||
#include "Cell.h"
|
||||
#include "CellImpl.h"
|
||||
#include "GridNotifiers.h"
|
||||
|
||||
/*######
|
||||
## npc_bunthen_plainswind
|
||||
|
||||
@@ -19,9 +19,13 @@
|
||||
SDName: Boss Malygos
|
||||
Script Data End */
|
||||
|
||||
/* Add support for using Exit Portal while on drake and find why at 100 Z ground
|
||||
falling creature/player bodies aren't stopped (when players reach it should die).
|
||||
Also there is release button unavailability sometimes not sure why. */
|
||||
/* Main problems needing most attention:
|
||||
1) Add support for using Exit Portal while on drake which means to
|
||||
find seat flag that allows casting on passenger or something that
|
||||
will prevent valid target filtering.
|
||||
2) Find what cause client not sending release now availability
|
||||
if player dies after far falling. For now player needs to logout to get body after
|
||||
if release button remain unavailable after box popping.*/
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
@@ -2174,9 +2178,7 @@ class spell_alexstrasza_bunny_destroy_platform_boom_visual : public SpellScriptL
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Creature* target = GetHitCreature())
|
||||
{
|
||||
target->CastSpell(target, SPELL_DESTROY_PLATFORM_EVENT);
|
||||
}
|
||||
}
|
||||
|
||||
void Register()
|
||||
@@ -2215,14 +2217,13 @@ class spell_alexstrasza_bunny_destroy_platform_event : public SpellScriptLoader
|
||||
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
Creature* caster = GetCaster()->ToCreature();
|
||||
caster->CastSpell(caster, SPELL_SUMMON_RED_DRAGON_BUDDY_F_CAST, true);
|
||||
GetCaster()->CastSpell((Unit*)NULL, SPELL_SUMMON_RED_DRAGON_BUDDY_F_CAST);
|
||||
}
|
||||
|
||||
void Register()
|
||||
{
|
||||
OnEffectHit += SpellEffectFn(spell_alexstrasza_bunny_destroy_platform_event_SpellScript::HandleSendEvent, EFFECT_0, SPELL_EFFECT_SEND_EVENT);
|
||||
OnEffectHitTarget += SpellEffectFn(spell_alexstrasza_bunny_destroy_platform_event_SpellScript::HandleScript, EFFECT_2, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
OnEffectHit += SpellEffectFn(spell_alexstrasza_bunny_destroy_platform_event_SpellScript::HandleScript, EFFECT_2, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "SpellScript.h"
|
||||
#include "SpellAuraEffects.h"
|
||||
#include "GridNotifiers.h"
|
||||
#include "GridNotifiersImpl.h"
|
||||
#include "CellImpl.h"
|
||||
|
||||
// 45102 Romantic Picnic
|
||||
|
||||
Reference in New Issue
Block a user