Skip to content

Commit

Permalink
Shield Dust prevents Throat Chop effect
Browse files Browse the repository at this point in the history
  • Loading branch information
turbedi authored Jun 6, 2017
1 parent f1a29e1 commit c51dab3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/BattleServer/moves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7633,6 +7633,9 @@ struct MMThroatChop : public MM //copied from taunt
b.sendAbMessage(112,1,t);
return;
}
if (b.hasWorkingAbility(t, Ability::ShieldDust))
return;

b.sendMoveMessage(223,1,s,Pokemon::Dark,t);
if (b.gen() >= 5 && b.hasWorkingItem(t, Item::MentalHerb)) /* mental herb*/ {
b.sendItemMessage(7,t);
Expand Down

0 comments on commit c51dab3

Please sign in to comment.