mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8210] Implement talent 53302 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
45a0d3c8c2
commit
e2d40fecc1
2 changed files with 44 additions and 1 deletions
|
|
@ -1829,6 +1829,49 @@ void Aura::TriggerSpell()
|
||||||
// }
|
// }
|
||||||
// break;
|
// break;
|
||||||
// }
|
// }
|
||||||
|
case SPELLFAMILY_HUNTER:
|
||||||
|
{
|
||||||
|
switch (auraId)
|
||||||
|
{
|
||||||
|
// Sniper training
|
||||||
|
case 53302:
|
||||||
|
case 53303:
|
||||||
|
case 53304:
|
||||||
|
if (target->GetTypeId() != TYPEID_PLAYER)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Reset reapply counter at move
|
||||||
|
if (((Player*)target)->isMoving())
|
||||||
|
{
|
||||||
|
m_modifier.m_amount = 6;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// We are standing at the moment
|
||||||
|
if (m_modifier.m_amount > 0)
|
||||||
|
{
|
||||||
|
--m_modifier.m_amount;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// select rank of buff
|
||||||
|
switch(auraId)
|
||||||
|
{
|
||||||
|
case 53302: trigger_spell_id = 64418; break;
|
||||||
|
case 53303: trigger_spell_id = 64419; break;
|
||||||
|
case 53304: trigger_spell_id = 64420; break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If aura is active - no need to continue
|
||||||
|
if (target->HasAura(trigger_spell_id))
|
||||||
|
return;
|
||||||
|
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case SPELLFAMILY_DRUID:
|
case SPELLFAMILY_DRUID:
|
||||||
{
|
{
|
||||||
switch(auraId)
|
switch(auraId)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8209"
|
#define REVISION_NR "8210"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue