mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-05 01:02:24 +00:00
Fix error
This commit is contained in:
parent
0ac70c5459
commit
1e1de3a48a
@ -1900,7 +1900,6 @@ void Mob::Taunt(NPC *who, bool always_succeed, int chance_bonus, bool FromSpell,
|
|||||||
if (chance_bonus) {
|
if (chance_bonus) {
|
||||||
Success = zone->random.Roll(chance_bonus);
|
Success = zone->random.Roll(chance_bonus);
|
||||||
} else {
|
} else {
|
||||||
int32 newhate = 0;
|
|
||||||
float tauntchance = 50.0f;
|
float tauntchance = 50.0f;
|
||||||
|
|
||||||
if (always_succeed)
|
if (always_succeed)
|
||||||
@ -1938,7 +1937,7 @@ void Mob::Taunt(NPC *who, bool always_succeed, int chance_bonus, bool FromSpell,
|
|||||||
|
|
||||||
if (Success) {
|
if (Success) {
|
||||||
if (hate_top && hate_top != this) {
|
if (hate_top && hate_top != this) {
|
||||||
newhate = (who->GetNPCHate(hate_top) - who->GetNPCHate(this)) + 1 + bonus_hate;
|
int newhate = (who->GetNPCHate(hate_top) - who->GetNPCHate(this)) + 1 + bonus_hate;
|
||||||
who->CastToNPC()->AddToHateList(this, newhate);
|
who->CastToNPC()->AddToHateList(this, newhate);
|
||||||
Success = true;
|
Success = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user