mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11700] Implement SPELL_AURA_DETECT_AMORE (170)
For example used by item 35125.
This commit is contained in:
parent
8f0c5d88b1
commit
78991c1131
4 changed files with 12 additions and 2 deletions
|
|
@ -524,6 +524,10 @@ enum PlayerFieldByteFlags
|
||||||
enum PlayerFieldByte2Flags
|
enum PlayerFieldByte2Flags
|
||||||
{
|
{
|
||||||
PLAYER_FIELD_BYTE2_NONE = 0x00,
|
PLAYER_FIELD_BYTE2_NONE = 0x00,
|
||||||
|
PLAYER_FIELD_BYTE2_DETECT_AMORE_0 = 0x02, // SPELL_AURA_DETECT_AMORE, not used as value and maybe not relcted to, but used in code as base for mask apply
|
||||||
|
PLAYER_FIELD_BYTE2_DETECT_AMORE_1 = 0x04, // SPELL_AURA_DETECT_AMORE value 1
|
||||||
|
PLAYER_FIELD_BYTE2_DETECT_AMORE_2 = 0x08, // SPELL_AURA_DETECT_AMORE value 2
|
||||||
|
PLAYER_FIELD_BYTE2_DETECT_AMORE_3 = 0x10, // SPELL_AURA_DETECT_AMORE value 3
|
||||||
PLAYER_FIELD_BYTE2_STEALTH = 0x20,
|
PLAYER_FIELD_BYTE2_STEALTH = 0x20,
|
||||||
PLAYER_FIELD_BYTE2_INVISIBILITY_GLOW = 0x40
|
PLAYER_FIELD_BYTE2_INVISIBILITY_GLOW = 0x40
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
|
||||||
&Aura::HandleAuraModRangedAttackPowerPercent, //167 SPELL_AURA_MOD_RANGED_ATTACK_POWER_PCT
|
&Aura::HandleAuraModRangedAttackPowerPercent, //167 SPELL_AURA_MOD_RANGED_ATTACK_POWER_PCT
|
||||||
&Aura::HandleNoImmediateEffect, //168 SPELL_AURA_MOD_DAMAGE_DONE_VERSUS implemented in Unit::SpellDamageBonusDone, Unit::MeleeDamageBonusDone
|
&Aura::HandleNoImmediateEffect, //168 SPELL_AURA_MOD_DAMAGE_DONE_VERSUS implemented in Unit::SpellDamageBonusDone, Unit::MeleeDamageBonusDone
|
||||||
&Aura::HandleNoImmediateEffect, //169 SPELL_AURA_MOD_CRIT_PERCENT_VERSUS implemented in Unit::DealDamageBySchool, Unit::DoAttackDamage, Unit::SpellCriticalBonus
|
&Aura::HandleNoImmediateEffect, //169 SPELL_AURA_MOD_CRIT_PERCENT_VERSUS implemented in Unit::DealDamageBySchool, Unit::DoAttackDamage, Unit::SpellCriticalBonus
|
||||||
&Aura::HandleNULL, //170 SPELL_AURA_DETECT_AMORE different spells that ignore transformation effects
|
&Aura::HandleDetectAmore, //170 SPELL_AURA_DETECT_AMORE different spells that ignore transformation effects
|
||||||
&Aura::HandleAuraModIncreaseSpeed, //171 SPELL_AURA_MOD_SPEED_NOT_STACK
|
&Aura::HandleAuraModIncreaseSpeed, //171 SPELL_AURA_MOD_SPEED_NOT_STACK
|
||||||
&Aura::HandleAuraModIncreaseMountedSpeed, //172 SPELL_AURA_MOD_MOUNTED_SPEED_NOT_STACK
|
&Aura::HandleAuraModIncreaseMountedSpeed, //172 SPELL_AURA_MOD_MOUNTED_SPEED_NOT_STACK
|
||||||
&Aura::HandleUnused, //173 unused (3.0.8a-3.2.2a) no spells, old SPELL_AURA_ALLOW_CHAMPION_SPELLS only for Proclaim Champion spell
|
&Aura::HandleUnused, //173 unused (3.0.8a-3.2.2a) no spells, old SPELL_AURA_ALLOW_CHAMPION_SPELLS only for Proclaim Champion spell
|
||||||
|
|
@ -4557,6 +4557,11 @@ void Aura::HandleInvisibilityDetect(bool apply, bool Real)
|
||||||
((Player*)target)->GetCamera().UpdateVisibilityForOwner();
|
((Player*)target)->GetCamera().UpdateVisibilityForOwner();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Aura::HandleDetectAmore(bool apply, bool /*real*/)
|
||||||
|
{
|
||||||
|
GetTarget()->ApplyModByteFlag(PLAYER_FIELD_BYTES2, 3, (PLAYER_FIELD_BYTE2_DETECT_AMORE_0 << m_modifier.m_amount), apply);
|
||||||
|
}
|
||||||
|
|
||||||
void Aura::HandleAuraModRoot(bool apply, bool Real)
|
void Aura::HandleAuraModRoot(bool apply, bool Real)
|
||||||
{
|
{
|
||||||
// only at real add/remove aura
|
// only at real add/remove aura
|
||||||
|
|
|
||||||
|
|
@ -268,6 +268,7 @@ class MANGOS_DLL_SPEC Aura
|
||||||
void HandleAuraModRoot(bool Apply, bool Real);
|
void HandleAuraModRoot(bool Apply, bool Real);
|
||||||
void HandleAuraModSilence(bool Apply, bool Real);
|
void HandleAuraModSilence(bool Apply, bool Real);
|
||||||
void HandleAuraModStat(bool Apply, bool Real);
|
void HandleAuraModStat(bool Apply, bool Real);
|
||||||
|
void HandleDetectAmore(bool Apply, bool Real);
|
||||||
void HandleAuraModIncreaseSpeed(bool Apply, bool Real);
|
void HandleAuraModIncreaseSpeed(bool Apply, bool Real);
|
||||||
void HandleAuraModIncreaseMountedSpeed(bool Apply, bool Real);
|
void HandleAuraModIncreaseMountedSpeed(bool Apply, bool Real);
|
||||||
void HandleAuraModIncreaseFlightSpeed(bool Apply, bool Real);
|
void HandleAuraModIncreaseFlightSpeed(bool Apply, bool Real);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11699"
|
#define REVISION_NR "11700"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue