Improper skill in use allowing riposte fix (Archery and Throwing allowing riposte check..no known bug reports)

This commit is contained in:
Uleat 2013-10-27 03:25:27 -04:00
parent cab77e83da
commit b3d117f8c1
3 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ Notes:
- Only CMake accessible flags were corrected if adding the 'std' namespace did not correct the issue
- the tag [CODEBUG] was added to code identifed by the above note
- If you are having compile issues after this patch is committed, look to the changes here first
Uleat: Changed riposte enabling check to proper failure criteria (x == 1 && x == 2 never fails) (discovery find, no known reported occurences)
== 10/24/2013 ==
demonstar55: Fix some memory leaks in Mob::SpellOnTarget

View File

@ -8086,7 +8086,7 @@ void Bot::DoSpecialAttackDamage(Mob *who, SkillType skill, int32 max_damage, int
else{
bool CanRiposte = true;
if(skill == THROWING && skill == ARCHERY)
if(skill == THROWING || skill == ARCHERY) // changed from '&&'
CanRiposte = false;
who->AvoidDamage(this, max_damage, CanRiposte);

View File

@ -132,7 +132,7 @@ void Mob::DoSpecialAttackDamage(Mob *who, SkillType skill, int32 max_damage, int
else{
bool CanRiposte = true;
if(skill == THROWING && skill == ARCHERY)
if(skill == THROWING || skill == ARCHERY) // changed from '&&'
CanRiposte = false;
who->AvoidDamage(this, max_damage, CanRiposte);