This commit is contained in:
aozhiwei 2023-03-01 13:17:18 +08:00
parent 4ad43ff7da
commit 0f2b2c4dc9
3 changed files with 20 additions and 13 deletions

View File

@ -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);
}

View File

@ -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;
};

View File

@ -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
}