mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8296] Restore mana to caster instead target at specific effect of 53209.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
822a34e2c7
commit
97a8114e44
2 changed files with 4 additions and 2 deletions
|
|
@ -5166,6 +5166,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
||||||
{
|
{
|
||||||
uint32 spellId = 0;
|
uint32 spellId = 0;
|
||||||
int32 basePoint = 0;
|
int32 basePoint = 0;
|
||||||
|
Unit* target = unitTarget;
|
||||||
Unit::AuraMap& Auras = unitTarget->GetAuras();
|
Unit::AuraMap& Auras = unitTarget->GetAuras();
|
||||||
for(Unit::AuraMap::iterator i = Auras.begin(); i != Auras.end(); ++i)
|
for(Unit::AuraMap::iterator i = Auras.begin(); i != Auras.end(); ++i)
|
||||||
{
|
{
|
||||||
|
|
@ -5190,6 +5191,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
||||||
{
|
{
|
||||||
spellId = 53358; // 53358 Chimera Shot - Viper
|
spellId = 53358; // 53358 Chimera Shot - Viper
|
||||||
basePoint = aura->GetModifier()->m_amount * 4 * 60 / 100;
|
basePoint = aura->GetModifier()->m_amount * 4 * 60 / 100;
|
||||||
|
target = m_caster;
|
||||||
}
|
}
|
||||||
// Scorpid Sting - Attempts to Disarm the target for 10 sec. This effect cannot occur more than once per 1 minute.
|
// Scorpid Sting - Attempts to Disarm the target for 10 sec. This effect cannot occur more than once per 1 minute.
|
||||||
if (familyFlag & UI64LIT(0x0000000000008000))
|
if (familyFlag & UI64LIT(0x0000000000008000))
|
||||||
|
|
@ -5202,7 +5204,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
if (spellId)
|
if (spellId)
|
||||||
m_caster->CastCustomSpell(unitTarget, spellId, &basePoint, 0, 0, false);
|
m_caster->CastCustomSpell(target, spellId, &basePoint, 0, 0, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8295"
|
#define REVISION_NR "8296"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue