This commit is contained in:
aozhiwei 2023-11-09 14:39:06 +08:00
parent 3f2c30d56d
commit 914dd1bd8f
3 changed files with 10 additions and 1 deletions

View File

@ -19,6 +19,10 @@ void SelectTargetWithSelfPosBuff::Activate()
(
[this, &targets] (Creature* c, bool& stop)
{
if (c->dead ||
c->IsCar()) {
return;
}
float distance = owner->GetPos().Distance2D2(c->GetPos());
float angle = 0.0f;
if (distance > 0.0001f) {

View File

@ -19,6 +19,10 @@ void SelectTargetWithSpecPosBuff::Activate()
(
[this, &targets] (Creature* c, bool& stop)
{
if (c->dead ||
c->IsCar()) {
return;
}
float distance = owner->GetPos().Distance2D2(c->GetPos());
float angle = 0.0f;
if (distance > 0.0001f) {

View File

@ -891,7 +891,8 @@ bool Creature::InternalCanUseSkill(Skill* skill)
if (room->GetGasData().GetGasMode() == GasInactive) {
return false;
}
if (GetAbility()->GetSwitchTimes(kDisableUseSkillTimes) > 0) {
if (GetAbility()->GetSwitchTimes(kDisableUseSkillTimes) > 0 &&
skill->GetMinorType() == SMT_NONE) {
return false;
}
if (room->GetGasData().GetGasMode() == GasInactive &&