Closed moepi2k closed 11 months ago
Disagree the below part, buff to ally and enemy were made with the intention that it won't be able to buff to the user.
But it can be added, let's users try it by themself
But condition for BuffToEnemy
with buffToUserIfNoTarget
will never be TRUE
because user cannot be itself enemy
in stock kit use mage -> spell Heal.
https://gyazo.com/a9d40ce956ff3416fc8124cfb190fc63
so when use 'Buff to target' with option 'Buff to user when no target'
and player has no target. it cast the spell but never apply it own player.
in skill.cs i saw there was a change for this:
bool foundTarget = skillUser.CurrentGameManager.TryGetEntityByObjectId(targetObjectId, out BaseCharacterEntity targetEntity) && !targetEntity.IsDead();
so when using this it works
p.S would be cool to add this change also to core:
so that 'Buff to user when no target' also works with 'Buff to ally' and 'Buff to enemy'