Skip to content

Instantly share code, notes, and snippets.

@Flashback083
Created July 19, 2021 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Flashback083/665b230c45049f8d33dad8bbb7a9c35c to your computer and use it in GitHub Desktop.
Save Flashback083/665b230c45049f8d33dad8bbb7a9c35c to your computer and use it in GitHub Desktop.
public int modifyDamageIncludeFixed(int damage, PixelmonWrapper user, PixelmonWrapper target, Attack a) {
if (target.getForm() != EnumMimikyu.Busted.getForm() && !a.hasNoEffect(user, target) && !a.isAttack("Moongeist Beam", "Sunsteel Strike", "Photon Geyser", "Searing Sunraze Smash", "Menacing Moonraze Maelstrom", "Light That Burns the Sky")) {
target.bc.sendToAll("pixelmon.abilities.disguise");
boolean isZombie = false;
if (target.entity.getSpecies().is(EnumSpecies.Ditto)){
if (target.entity.getPokemonData().getForm() == 100){
isZombie = true;
}
}
target.setForm(EnumMimikyu.Busted);
if (isZombie){
System.out.println("Form back for Ditto");
target.setForm(100);
}
target.bc.sendToAll("pixelmon.abilities.disguisebusted", target.getPokemonName());
return target.getMaxHealth() / 8;
} else {
return damage;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment