mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
Improper skill in use allowing riposte fix (Archery and Throwing allowing riposte check..no known bug reports)
This commit is contained in:
parent
cab77e83da
commit
b3d117f8c1
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user