[Spells] Implemented SPA 471 SE_Double_Melee_Round (#1492)

* Implemented SPA 471 SE_Double_Melee_Round

#define SE_Double_Melee_Round			471
Percent chance to repeat primary weapon round with a percent damage modifier, base: pct chance repeat, limit: pct dmg mod, max: none

* minor fixes

* tab to spaces
This commit is contained in:
KayenEQ
2021-08-11 02:38:38 -04:00
committed by GitHub
parent b539c63326
commit c821397367
7 changed files with 64 additions and 1 deletions
+5
View File
@@ -844,6 +844,10 @@ public:
bool CanFocusUseRandomEffectivenessByType(focusType type);
int GetFocusRandomEffectivenessValue(int focus_base, int focus_base2, bool best_focus = 0);
bool TryDoubleMeleeRoundEffect();
bool GetUseDoubleMeleeRoundDmgBonus() const { return use_double_melee_round_dmg_bonus; }
inline void SetUseDoubleMeleeRoundDmgBonus(bool val) { use_double_melee_round_dmg_bonus = val; }
void CastSpellOnLand(Mob* caster, int32 spell_id);
void FocusProcLimitProcess();
bool ApplyFocusProcLimiter(int32 spell_id, int buffslot = -1);
@@ -1498,6 +1502,7 @@ protected:
bool has_twohandbluntequiped;
bool has_twohanderequipped;
bool has_duelweaponsequiped;
bool use_double_melee_round_dmg_bonus;
bool can_facestab;
bool has_numhits;
bool has_MGB;