Skip to content

Commit

Permalink
comment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelday008 committed Jan 2, 2020
1 parent 5007c44 commit 74d3d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Abilities/Effect/AbilityEffect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public virtual bool CanUseOn(GameObject target, BaseCharacter sourceCharacter) {

CharacterUnit targetCharacterUnit = target.GetComponent<CharacterUnit>();
if (targetCharacterUnit == null) {
Debug.Log(MyName + ".AbilityEffect.CanUseOn(): targetCharacterUnit is null, return false");
//Debug.Log(MyName + ".AbilityEffect.CanUseOn(): targetCharacterUnit is null, return false");
return false;
}

Expand All @@ -206,7 +206,7 @@ public virtual bool CanUseOn(GameObject target, BaseCharacter sourceCharacter) {

if (!canCastOnEnemy && !canCastOnSelf && !autoSelfCast) {
if (Faction.RelationWith(targetCharacterUnit.MyCharacter, sourceCharacter) <= -1) {
Debug.Log("we cannot cast this on an enemy but the target was an enemy. return false");
//Debug.Log("we cannot cast this on an enemy but the target was an enemy. return false");
return false;
}
}
Expand Down

0 comments on commit 74d3d4f

Please sign in to comment.