mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7516] Add form/mounting/self control loss limitations to 48505 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
636b0a9464
commit
1d95ae7555
2 changed files with 13 additions and 1 deletions
|
|
@ -1367,6 +1367,18 @@ void Spell::EffectDummy(uint32 i)
|
||||||
// Starfall
|
// Starfall
|
||||||
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100LL)
|
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100LL)
|
||||||
{
|
{
|
||||||
|
//Shapeshifting into an animal form or mounting cancels the effect.
|
||||||
|
if(m_caster->GetCreatureType() == CREATURE_TYPE_BEAST || m_caster->IsMounted())
|
||||||
|
{
|
||||||
|
if(m_triggeredByAuraSpell)
|
||||||
|
m_caster->RemoveAurasDueToSpell(m_triggeredByAuraSpell->Id);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Any effect which causes you to lose control of your character will supress the starfall effect.
|
||||||
|
if(m_caster->hasUnitState(UNIT_STAT_STUNNED | UNIT_STAT_FLEEING | UNIT_STAT_ROOT | UNIT_STAT_CONFUSED))
|
||||||
|
return;
|
||||||
|
|
||||||
switch(m_spellInfo->Id)
|
switch(m_spellInfo->Id)
|
||||||
{
|
{
|
||||||
case 50286: m_caster->CastSpell(unitTarget, 50288, true); return;
|
case 50286: m_caster->CastSpell(unitTarget, 50288, true); return;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7515"
|
#define REVISION_NR "7516"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue