1
This commit is contained in:
parent
8c7baf31d4
commit
6347baa5a4
@ -451,6 +451,7 @@ void Buff::ProcSprint()
|
|||||||
(*hited_objects)[enemy->GetUniId()] = buff->owner->room->GetFrameNo();
|
(*hited_objects)[enemy->GetUniId()] = buff->owner->room->GetFrameNo();
|
||||||
for (int buff_id : buff->meta->param3_int_list) {
|
for (int buff_id : buff->meta->param3_int_list) {
|
||||||
enemy->TryAddBuff(buff->owner, buff_id);
|
enemy->TryAddBuff(buff->owner, buff_id);
|
||||||
|
}
|
||||||
if (buff->skill_meta) {
|
if (buff->skill_meta) {
|
||||||
switch (buff->skill_meta->GetMagicId()) {
|
switch (buff->skill_meta->GetMagicId()) {
|
||||||
case MAGIC_YMCZ:
|
case MAGIC_YMCZ:
|
||||||
@ -478,7 +479,6 @@ void Buff::ProcSprint()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
buff->owner->SetPos(old_pos);
|
buff->owner->SetPos(old_pos);
|
||||||
*pre_pos = buff->owner->GetPos();
|
*pre_pos = buff->owner->GetPos();
|
||||||
|
@ -88,6 +88,7 @@ void Bullet::OnHit(std::set<Entity*>& objects)
|
|||||||
!(target->IsCreature(room) &&
|
!(target->IsCreature(room) &&
|
||||||
((Creature*)target)->IsCar())) {
|
((Creature*)target)->IsCar())) {
|
||||||
ProcFlyHook(target);
|
ProcFlyHook(target);
|
||||||
|
target->OnBulletHit(this);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -315,7 +315,7 @@ float SkillHelper::GetSjydhxBackTime(const MetaData::Skill* skill_meta)
|
|||||||
|
|
||||||
int SkillHelper::GetYmczBuffTime(const MetaData::Skill* skill_meta)
|
int SkillHelper::GetYmczBuffTime(const MetaData::Skill* skill_meta)
|
||||||
{
|
{
|
||||||
return 0;
|
return skill_meta && skill_meta->number_meta ? 3000 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int SkillHelper::GetYmczReserveDistance(const MetaData::Skill* skill_meta)
|
int SkillHelper::GetYmczReserveDistance(const MetaData::Skill* skill_meta)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user