fix spell
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
#include "ObjectMgr.h"
|
#include "ObjectMgr.h"
|
||||||
#include "Pet.h"
|
#include "Pet.h"
|
||||||
#include "PhasingHandler.h"
|
#include "PhasingHandler.h"
|
||||||
|
#include "Player.h"
|
||||||
#include "ReputationMgr.h"
|
#include "ReputationMgr.h"
|
||||||
#include "PathGenerator.h"
|
#include "PathGenerator.h"
|
||||||
#include "SkillDiscovery.h"
|
#include "SkillDiscovery.h"
|
||||||
@@ -5822,6 +5823,41 @@ class spell_class_mecagnomo_emergency : public AuraScript
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class spell_warboard_alliance_261654 : public SpellScript
|
||||||
|
{
|
||||||
|
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||||
|
{
|
||||||
|
Unit* caster = GetCaster();
|
||||||
|
Player* player = GetHitPlayer();
|
||||||
|
if (!caster || !player)
|
||||||
|
return;
|
||||||
|
|
||||||
|
player->SendPlayerChoice(caster->GetGUID(), 352);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Register() override
|
||||||
|
{
|
||||||
|
OnEffectHitTarget += SpellEffectFn(spell_warboard_alliance_261654::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
class spell_warboard_horde_261655 : public SpellScript
|
||||||
|
{
|
||||||
|
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||||
|
{
|
||||||
|
Unit* caster = GetCaster();
|
||||||
|
Player* player = GetHitPlayer();
|
||||||
|
if (!caster || !player)
|
||||||
|
return;
|
||||||
|
|
||||||
|
player->SendPlayerChoice(caster->GetGUID(), 342);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Register() override
|
||||||
|
{
|
||||||
|
OnEffectHitTarget += SpellEffectFn(spell_warboard_horde_261655::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
//WowCommunity
|
//WowCommunity
|
||||||
void AddSC_generic_spell_scripts()
|
void AddSC_generic_spell_scripts()
|
||||||
@@ -6025,5 +6061,7 @@ void AddSC_generic_spell_scripts()
|
|||||||
RegisterSpellScript(spell_wormhole_zandalar); // Spell 299084
|
RegisterSpellScript(spell_wormhole_zandalar); // Spell 299084
|
||||||
RegisterSpellScript(spell_wormhole_dalaran); // Spell 199978
|
RegisterSpellScript(spell_wormhole_dalaran); // Spell 199978
|
||||||
RegisterSpellScript(spell_class_mecagnomo_emergency);
|
RegisterSpellScript(spell_class_mecagnomo_emergency);
|
||||||
|
RegisterSpellScript(spell_warboard_alliance_261654);
|
||||||
|
RegisterSpellScript(spell_warboard_horde_261655);
|
||||||
//WowCommunity
|
//WowCommunity
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user