Commit bc6482c9 authored by Fardale's avatar Fardale

boule de feu a désormais un effet de soin sur les ponytas (par Clément Ringeade)

parent 0087fb75
......@@ -217,9 +217,15 @@ public class EffectBuilder implements Serializable{
for (Integer targetID : targetCharacterIDList) {
try {
if(gameContent.getGameState().getEntity(casterCharacterID).getOwned_character() != targetID) {
gameContent.getGameState().getCharacter(targetID).takeDamage(Math.max(1, 0));
// test pour l'effet soin de la boule de feu sur les ponytas
if (gameContent.getGameState().getCharacter(targetID).getSpeciesName().equals("Ponyta")) {
gameContent.getGameState().getCharacter(targetID).takeDamage(-2);
} else {
gameContent.getGameState().getCharacter(targetID).takeDamage(Math.max(1, 0));
}
hit =true;
}
} catch (EntityNotFoundExeption entityNotFoundExeption) {
}
}
......@@ -278,7 +284,7 @@ public class EffectBuilder implements Serializable{
}
};
}
/** Methods to be applied on an Effect to transform it into another one **/
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment