1
This commit is contained in:
parent
970a4de0d1
commit
d935629cac
@ -118,6 +118,17 @@ void SprintBuff::Check(Position& pre_pos, std::map<int, long long>& hited_object
|
||||
}
|
||||
}
|
||||
hited_objects[enemy->GetUniId()] = owner->room->GetFrameNo();
|
||||
OnEnemyHit(enemy);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
owner->SetPos(old_pos);
|
||||
pre_pos = owner->GetPos();
|
||||
}
|
||||
|
||||
void SprintBuff::OnEnemyHit(Creature* enemy)
|
||||
{
|
||||
for (int buff_id : meta->_param3_int_list) {
|
||||
enemy->TryAddBuff(owner, buff_id);
|
||||
}
|
||||
@ -147,12 +158,6 @@ void SprintBuff::Check(Position& pre_pos, std::map<int, long long>& hited_object
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
owner->SetPos(old_pos);
|
||||
pre_pos = owner->GetPos();
|
||||
}
|
||||
|
||||
void SprintBuff::ProcSkill()
|
||||
{
|
||||
|
@ -13,6 +13,7 @@ class SprintBuff : public Buff
|
||||
void SprintMove();
|
||||
void CoCollisionCheck();
|
||||
void Check(Position& pre_pos, std::map<int, long long>& hited_objects);
|
||||
void OnEnemyHit(Creature* enemy);
|
||||
void ProcSkill();
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user