1
This commit is contained in:
parent
4ad43ff7da
commit
0f2b2c4dc9
@ -32,6 +32,19 @@ void SprintBuff::Deactivate()
|
||||
if (owner->AsHuman()) {
|
||||
owner->AsHuman()->last_shot_frameno_ = owner->room->GetFrameNo() + SERVER_FRAME_RATE;
|
||||
}
|
||||
if (skill_meta) {
|
||||
switch (skill_meta->GetMagicId()) {
|
||||
case MAGIC_20901_XIONG:
|
||||
{
|
||||
ProcXiongHun();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SprintBuff::SprintMove()
|
||||
@ -200,3 +213,9 @@ void SprintBuff::ProcSkill()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void SprintBuff::ProcXiongHun()
|
||||
{
|
||||
owner->TryAddBuff(owner, 209016);
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ class SprintBuff : public Buff
|
||||
void Check(Position& pre_pos, std::map<int, long long>& hited_objects);
|
||||
void OnEnemyHit(Creature* enemy);
|
||||
void ProcSkill();
|
||||
void ProcXiongHun();
|
||||
|
||||
int stop_times_ = 0;
|
||||
};
|
||||
|
@ -557,19 +557,6 @@ void Skill::Proc30401MAO()
|
||||
#endif
|
||||
}
|
||||
);
|
||||
owner->GetTrigger()->AddListener
|
||||
(
|
||||
kDieEvent,
|
||||
[this] (const a8::Args& args)
|
||||
{
|
||||
#if 0
|
||||
int killer_id = std::any_cast<int>(params.at(0));
|
||||
Entity* killer = owner->room->GetEntityByUniId(killer_id);
|
||||
if (killer && killer != owner) {
|
||||
owner->TryAddBuff(owner, 209016);
|
||||
}
|
||||
#endif
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user