mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 08:21:28 +00:00
Update SE_Taunt - Limit value if present will now add instant hate.
This commit is contained in:
parent
02e780025d
commit
2a48b199d2
@ -4,6 +4,8 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
|||||||
== 06/25/2014 ==
|
== 06/25/2014 ==
|
||||||
Kayen: Updated SE_Hate (Renamed from SE_Hate2) to now properly work for instant +/- hate spells.
|
Kayen: Updated SE_Hate (Renamed from SE_Hate2) to now properly work for instant +/- hate spells.
|
||||||
Kayen: Updated SE_FadingMemories - Base value will be properly utilized to set % chance for fade effect to work.
|
Kayen: Updated SE_FadingMemories - Base value will be properly utilized to set % chance for fade effect to work.
|
||||||
|
Kayen: Implemented SE_StrikeThough (Was incorrectly defined as implemented previously) - Works same as item bonus.
|
||||||
|
Kayen: Update SE_Taunt - Limit value if present will now add instant hate.
|
||||||
|
|
||||||
== 06/17/2014 ==
|
== 06/17/2014 ==
|
||||||
Kayen: Implemented SE_AStacker, SE_BStacker, SE_CStacker, SE_DStacker.
|
Kayen: Implemented SE_AStacker, SE_BStacker, SE_CStacker, SE_DStacker.
|
||||||
|
|||||||
@ -2646,9 +2646,12 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
|
|||||||
|
|
||||||
case SE_Taunt:
|
case SE_Taunt:
|
||||||
{
|
{
|
||||||
if (IsNPC())
|
if (IsNPC()){
|
||||||
caster->Taunt(this->CastToNPC(), false, spell.base[i]);
|
caster->Taunt(this->CastToNPC(), false, spell.base[i]);
|
||||||
|
|
||||||
|
if (spell.base2[i] > 0)
|
||||||
|
CastToNPC()->SetHate(caster, (CastToNPC()->GetHateAmount(caster) + spell.base2[i]));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2673,9 +2676,13 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
|
|||||||
|
|
||||||
case SE_AddHatePct:
|
case SE_AddHatePct:
|
||||||
{
|
{
|
||||||
if (IsNPC())
|
if (IsNPC()){
|
||||||
CastToNPC()->SetHate(caster, (CastToNPC()->GetHateAmount(caster) * (100 + spell.base[i]) / 100));
|
int32 new_hate = CastToNPC()->GetHateAmount(caster) * (100 + spell.base[i]) / 100;
|
||||||
|
if (new_hate <= 0)
|
||||||
|
new_hate = 1;
|
||||||
|
|
||||||
|
CastToNPC()->SetHate(caster, new_hate);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3562,9 +3569,13 @@ void Mob::DoBuffTic(uint16 spell_id, int slot, uint32 ticsremaining, uint8 caste
|
|||||||
|
|
||||||
case SE_AddHateOverTimePct:
|
case SE_AddHateOverTimePct:
|
||||||
{
|
{
|
||||||
if (IsNPC())
|
if (IsNPC()){
|
||||||
CastToNPC()->SetHate(caster, (CastToNPC()->GetHateAmount(caster) * (100 + spell.base[i]) / 100));
|
int32 new_hate = CastToNPC()->GetHateAmount(caster) * (100 + spell.base[i]) / 100;
|
||||||
|
if (new_hate <= 0)
|
||||||
|
new_hate = 1;
|
||||||
|
|
||||||
|
CastToNPC()->SetHate(caster, new_hate);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user