mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-28 02:13:52 +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) {
|
||||
Success = zone->random.Roll(chance_bonus);
|
||||
} else {
|
||||
int32 newhate = 0;
|
||||
float tauntchance = 50.0f;
|
||||
|
||||
if (always_succeed)
|
||||
@ -1938,7 +1937,7 @@ void Mob::Taunt(NPC *who, bool always_succeed, int chance_bonus, bool FromSpell,
|
||||
|
||||
if (Success) {
|
||||
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);
|
||||
Success = true;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user