Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void CastFireray(Firenation firenation, Avatar avatar)
- {
- //Första Ifsatsen
- if (firenation.CurrentDefence == "Fireray" && avatar.CurrentAttack == "Waterray")
- {
- NoDamage();
- }
- //Andra Ifsatsen
- if (avatar.CurrentDefence == "Fireray" && avatar.CurrentAttack == "Airbending")
- {
- LightDamage();
- }
- //Tredje Ifsatsen
- if (firenation.CurrentDefence == "Fireray" && avatar.CurrentAttack == "Earthquake")
- {
- MediumDamage();
- }
- else //Ifall tredje ifsatsen är falsk :P gå in här.
- {
- HeavyDamage();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement