Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1.         public void CastFireray(Firenation firenation, Avatar avatar)
  2.         {
  3.             //Första Ifsatsen
  4.  
  5.             if (firenation.CurrentDefence == "Fireray" && avatar.CurrentAttack == "Waterray")
  6.             {
  7.                 NoDamage();
  8.             }
  9.  
  10.             //Andra Ifsatsen
  11.             if (avatar.CurrentDefence == "Fireray" && avatar.CurrentAttack == "Airbending")
  12.             {
  13.                 LightDamage();
  14.             }
  15.  
  16.             //Tredje Ifsatsen
  17.             if (firenation.CurrentDefence == "Fireray" && avatar.CurrentAttack == "Earthquake")
  18.             {
  19.                 MediumDamage();
  20.             }
  21.             else //Ifall tredje ifsatsen är falsk :P gå in här.
  22.             {
  23.                 HeavyDamage();
  24.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement