1
This commit is contained in:
parent
e7990ce206
commit
67d0bec5a5
@ -119,6 +119,7 @@ void SprintBuff::Check(Position& pre_pos, Position& src_pos, std::map<int, long
|
|||||||
{
|
{
|
||||||
if (a8::TIMER_EXEC_EVENT == event) {
|
if (a8::TIMER_EXEC_EVENT == event) {
|
||||||
owner->RemoveBuffByUniId(buff_uniid);
|
owner->RemoveBuffByUniId(buff_uniid);
|
||||||
|
owner->TryAddBuff(owner, meta->_int_buff_param1, skill_meta);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
&xtimer_attacher);
|
&xtimer_attacher);
|
||||||
@ -137,6 +138,7 @@ void SprintBuff::Check(Position& pre_pos, Position& src_pos, std::map<int, long
|
|||||||
{
|
{
|
||||||
if (a8::TIMER_EXEC_EVENT == event) {
|
if (a8::TIMER_EXEC_EVENT == event) {
|
||||||
owner->RemoveBuffByUniId(buff_uniid);
|
owner->RemoveBuffByUniId(buff_uniid);
|
||||||
|
owner->TryAddBuff(owner, meta->_int_buff_param1, skill_meta);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
&xtimer_attacher);
|
&xtimer_attacher);
|
||||||
@ -206,28 +208,6 @@ void SprintBuff::OnEnemyHit(Creature* enemy)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
void SprintBuff::ProcSkill()
|
|
||||||
{
|
|
||||||
if (skill_meta) {
|
|
||||||
switch (skill_meta->GetMagicId()) {
|
|
||||||
case MAGIC_20901_XIONG:
|
|
||||||
{
|
|
||||||
owner->room->xtimer.ModifyTime
|
|
||||||
(remover_timer,
|
|
||||||
SkillHelper::GetYmczBuffTime(skill_meta) / FRAME_RATE_MS);
|
|
||||||
owner->GetAbility()->AddSpeedAddition(skill_meta->_number_meta->_float_speed);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
{
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
void SprintBuff::ProcXiongHun()
|
void SprintBuff::ProcXiongHun()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user