Start moving passive power processing to playerTick

This commit is contained in:
gsemaj
2022-05-18 21:30:53 -04:00
committed by gsemaj
parent 90819bea8e
commit 09b74a5711
9 changed files with 42 additions and 51 deletions

View File

@@ -38,7 +38,7 @@ std::vector<EntityRef> Abilities::matchTargets(SkillData* skill, int count, int3
return targets;
}
void Abilities::useAbility(SkillData* skill, EntityRef src, std::vector<EntityRef> targets) {
void Abilities::applyAbility(SkillData* skill, EntityRef src, std::vector<EntityRef> targets) {
for (EntityRef target : targets) {
Entity* entity = target.getEntity();
if (entity->kind != PLAYER && entity->kind != COMBAT_NPC && entity->kind != MOB)