*Try to fix a crash caused by CalcAbsorbResist. Thanks to nanouniko

--HG--
branch : trunk
This commit is contained in:
megamage
2009-09-06 22:00:10 -05:00
parent f3aa989716
commit c6a831e0ae
2 changed files with 36 additions and 36 deletions
+12
View File
@@ -859,6 +859,18 @@ struct SpellPeriodicAuraLogInfo
bool critical;
};
struct TriggeredSpellInfo
{
TriggeredSpellInfo(uint32 _spell, Unit *_source, Unit *_target, int32 _amount = 0, AuraEffect *_auraEff = NULL)
: spell(_spell), amount(_amount), source(_source), target(_target), auraEff(_auraEff) {}
uint32 spell;
int32 amount;
Unit *source, *target;
AuraEffect *auraEff;
};
typedef std::vector<TriggeredSpellInfo> TriggeredSpellInfoVct;
uint32 createProcExtendMask(SpellNonMeleeDamage *damageInfo, SpellMissInfo missCondition);
#define MAX_DECLINED_NAME_CASES 5