1
This commit is contained in:
parent
3f2c30d56d
commit
914dd1bd8f
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user