Merge remote-tracking branch 'origin/master' into 4.3.4

This commit is contained in:
Nay committed 2012-08-10 13:43:27 +01:00
commit ca5b4227a8
10 files changed
+159

No files matched your search

+29
View File
@@ -389,6 +389,34 @@ class spell_rog_deadly_poison : public SpellScriptLoader
}
};
class spell_rog_shadowstep : public SpellScriptLoader
{
public:
spell_rog_shadowstep() : SpellScriptLoader("spell_rog_shadowstep") { }
class spell_rog_shadowstep_SpellScript : public SpellScript
{
PrepareSpellScript(spell_rog_shadowstep_SpellScript);
SpellCastResult CheckCast()
{
if (GetCaster()->HasUnitState(UNIT_STATE_ROOT))
return SPELL_FAILED_ROOTED;
return SPELL_CAST_OK;
}
void Register()
{
OnCheckCast += SpellCheckCastFn(spell_rog_shadowstep_SpellScript::CheckCast);
}
};
SpellScript* GetSpellScript() const
{
return new spell_rog_shadowstep_SpellScript();
}
};
void AddSC_rogue_spell_scripts()
{
new spell_rog_cheat_death();
@@ -397,4 +425,5 @@ void AddSC_rogue_spell_scripts()
new spell_rog_prey_on_the_weak();
new spell_rog_shiv();
new spell_rog_deadly_poison();
new spell_rog_shadowstep();
}