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();
|
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) {
|
for (int buff_id : meta->_param3_int_list) {
|
||||||
enemy->TryAddBuff(owner, buff_id);
|
enemy->TryAddBuff(owner, buff_id);
|
||||||
}
|
}
|
||||||
@ -146,12 +157,6 @@ void SprintBuff::Check(Position& pre_pos, std::map<int, long long>& hited_object
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
owner->SetPos(old_pos);
|
|
||||||
pre_pos = owner->GetPos();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SprintBuff::ProcSkill()
|
void SprintBuff::ProcSkill()
|
||||||
|
@ -13,6 +13,7 @@ class SprintBuff : public Buff
|
|||||||
void SprintMove();
|
void SprintMove();
|
||||||
void CoCollisionCheck();
|
void CoCollisionCheck();
|
||||||
void Check(Position& pre_pos, std::map<int, long long>& hited_objects);
|
void Check(Position& pre_pos, std::map<int, long long>& hited_objects);
|
||||||
|
void OnEnemyHit(Creature* enemy);
|
||||||
void ProcSkill();
|
void ProcSkill();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user