mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[8972] Some hacks to our hackish IsPositiveEffect function.
In attempt improve positive spells detection.
This commit is contained in:
parent
fe12e08f08
commit
53680ec3b6
2 changed files with 7 additions and 3 deletions
|
|
@ -483,7 +483,7 @@ bool IsPositiveEffect(uint32 spellId, uint32 effIndex)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case SPELL_AURA_MOD_DAMAGE_DONE: // dependent from bas point sign (negative -> negative)
|
case SPELL_AURA_MOD_DAMAGE_DONE: // dependent from base point sign (negative -> negative)
|
||||||
case SPELL_AURA_MOD_STAT:
|
case SPELL_AURA_MOD_STAT:
|
||||||
case SPELL_AURA_MOD_SKILL:
|
case SPELL_AURA_MOD_SKILL:
|
||||||
case SPELL_AURA_MOD_HEALING_PCT:
|
case SPELL_AURA_MOD_HEALING_PCT:
|
||||||
|
|
@ -496,8 +496,10 @@ bool IsPositiveEffect(uint32 spellId, uint32 effIndex)
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
case SPELL_AURA_MOD_SPELL_CRIT_CHANCE:
|
case SPELL_AURA_MOD_SPELL_CRIT_CHANCE:
|
||||||
|
case SPELL_AURA_MOD_INCREASE_HEALTH_PERCENT:
|
||||||
|
case SPELL_AURA_MOD_DAMAGE_PERCENT_DONE:
|
||||||
if(spellproto->CalculateSimpleValue(effIndex) > 0)
|
if(spellproto->CalculateSimpleValue(effIndex) > 0)
|
||||||
return true; // some expected positive spells have SPELL_ATTR_EX_NEGATIVE
|
return true; // some expected positive spells have SPELL_ATTR_EX_NEGATIVE or unclear target modes
|
||||||
break;
|
break;
|
||||||
case SPELL_AURA_ADD_TARGET_TRIGGER:
|
case SPELL_AURA_ADD_TARGET_TRIGGER:
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -573,6 +575,8 @@ bool IsPositiveEffect(uint32 spellId, uint32 effIndex)
|
||||||
// some spells negative
|
// some spells negative
|
||||||
switch(spellproto->Id)
|
switch(spellproto->Id)
|
||||||
{
|
{
|
||||||
|
case 802: // Mutate Bug, wrongly negative by target modes
|
||||||
|
return true;
|
||||||
case 36900: // Soul Split: Evil!
|
case 36900: // Soul Split: Evil!
|
||||||
case 36901: // Soul Split: Good
|
case 36901: // Soul Split: Good
|
||||||
case 36893: // Transporter Malfunction (decrease size case)
|
case 36893: // Transporter Malfunction (decrease size case)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8971"
|
#define REVISION_NR "8972"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue