mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[7164] Fixed 1 tick periodic for drink spells (remove not need code)
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
c336eef4cd
commit
68b537dc30
2 changed files with 5 additions and 41 deletions
|
|
@ -6172,48 +6172,12 @@ void Aura::PeriodicDummyTick()
|
||||||
for(Unit::AuraList::const_iterator i = aura.begin(); i != aura.end(); ++i)
|
for(Unit::AuraList::const_iterator i = aura.begin(); i != aura.end(); ++i)
|
||||||
{
|
{
|
||||||
if ((*i)->GetId() == GetId())
|
if ((*i)->GetId() == GetId())
|
||||||
{
|
|
||||||
// Get tick number
|
|
||||||
int32 tick = (m_maxduration - m_duration) / m_modifier.periodictime;
|
|
||||||
// Default case (not on arenas)
|
|
||||||
if (tick == 0)
|
|
||||||
{
|
{
|
||||||
(*i)->GetModifier()->m_amount = m_modifier.m_amount;
|
(*i)->GetModifier()->m_amount = m_modifier.m_amount;
|
||||||
((Player*)m_target)->UpdateManaRegen();
|
((Player*)m_target)->UpdateManaRegen();
|
||||||
// Disable continue
|
// Disable continue
|
||||||
m_isPeriodic = false;
|
m_isPeriodic = false;
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
//**********************************************
|
|
||||||
// Code commended since arena patch not added
|
|
||||||
// This feature uses only in arenas
|
|
||||||
//**********************************************
|
|
||||||
// Here need increase mana regen per tick (6 second rule)
|
|
||||||
// on 0 tick - 0 (handled in 2 second)
|
|
||||||
// on 1 tick - 166% (handled in 4 second)
|
|
||||||
// on 2 tick - 133% (handled in 6 second)
|
|
||||||
// Not need update after 3 tick
|
|
||||||
/*
|
|
||||||
if (tick > 3)
|
|
||||||
return;
|
|
||||||
// Apply bonus for 0 - 3 tick
|
|
||||||
switch (tick)
|
|
||||||
{
|
|
||||||
case 0: // 0%
|
|
||||||
(*i)->GetModifier()->m_amount = m_modifier.m_amount = 0;
|
|
||||||
break;
|
|
||||||
case 1: // 166%
|
|
||||||
(*i)->GetModifier()->m_amount = m_modifier.m_amount * 5 / 3;
|
|
||||||
break;
|
|
||||||
case 2: // 133%
|
|
||||||
(*i)->GetModifier()->m_amount = m_modifier.m_amount * 4 / 3;
|
|
||||||
break;
|
|
||||||
default: // 100% - normal regen
|
|
||||||
(*i)->GetModifier()->m_amount = m_modifier.m_amount;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
((Player*)m_target)->UpdateManaRegen();
|
|
||||||
return;*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7163"
|
#define REVISION_NR "7164"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue