Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. struct blast_wave_t : public mage_spell_t
  2. {
  3. blast_wave_t( mage_t* p, const std::string& options_str ) :
  4. mage_spell_t( "blast_wave", p, p -> talents.blast_wave )
  5. {
  6. parse_options( NULL, options_str );
  7. aoe = -1;
  8. }
  9.  
  10. virtual void init()
  11. {
  12. mage_spell_t::init();
  13.  
  14. // FIXME: Cannot find this info in the spell data, so I had to hard code it.
  15. cooldown -> duration = timespan_t::from_seconds( 12.0 );
  16. cooldown -> charges = 2;
  17. }
  18.  
  19.  
  20. // Since the target is always going to be the enemy, the damage done by blast_wave needs to get the 100% damage bonus
  21. virtual double action_multiplier() const
  22. {
  23. double am = mage_spell_t::action_multiplier();
  24.  
  25. am *= 1.0 + p() -> talents.blast_wave -> effectN( 1 ).percent();
  26.  
  27. return am;
  28. }
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement