-
-
Save Flashback083/665b230c45049f8d33dad8bbb7a9c35c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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