mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
Merge pull request #329 from KayenEQ/Development
NPC special ability (43) CASTING_RESIST_DIFF
This commit is contained in:
commit
7ecea56caf
@ -4,6 +4,9 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
|||||||
Akkadius: Add option to automatic database upgrade script 5) Download latest Opcodes from Github
|
Akkadius: Add option to automatic database upgrade script 5) Download latest Opcodes from Github
|
||||||
Trevius: (RoF2) Fixed dropping items on the ground so they go to ground level instead of camera height.
|
Trevius: (RoF2) Fixed dropping items on the ground so they go to ground level instead of camera height.
|
||||||
Trevius: Show Helm Option should be functional again.
|
Trevius: Show Helm Option should be functional again.
|
||||||
|
Kayen: Implemened npc special ability (43) CASTING_RESIST_DIFF which sets innate resist modifier on
|
||||||
|
ALL spells used by that NPC. Ie. 43,1,-200 will set a -200 innate resist diff, so if your npc cast
|
||||||
|
a spell that has a -10 resist modifier the final resist diff would be -210.
|
||||||
|
|
||||||
== 12/24/2014 ==
|
== 12/24/2014 ==
|
||||||
Trevius: (RoF+) Added herosforgemodel field to the npc_types table.
|
Trevius: (RoF+) Added herosforgemodel field to the npc_types table.
|
||||||
|
|||||||
@ -135,7 +135,8 @@ enum {
|
|||||||
NPC_CHASE_DISTANCE = 40,
|
NPC_CHASE_DISTANCE = 40,
|
||||||
ALLOW_TO_TANK = 41,
|
ALLOW_TO_TANK = 41,
|
||||||
IGNORE_ROOT_AGGRO_RULES = 42,
|
IGNORE_ROOT_AGGRO_RULES = 42,
|
||||||
MAX_SPECIAL_ATTACK = 43
|
CASTING_RESIST_DIFF = 43,
|
||||||
|
MAX_SPECIAL_ATTACK = 44
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum { //fear states
|
typedef enum { //fear states
|
||||||
|
|||||||
@ -4206,6 +4206,10 @@ float Mob::ResistSpell(uint8 resist_type, uint16 spell_id, Mob *caster, bool use
|
|||||||
|
|
||||||
//Get resist modifier and adjust it based on focus 2 resist about eq to 1% resist chance
|
//Get resist modifier and adjust it based on focus 2 resist about eq to 1% resist chance
|
||||||
int resist_modifier = (use_resist_override) ? resist_override : spells[spell_id].ResistDiff;
|
int resist_modifier = (use_resist_override) ? resist_override : spells[spell_id].ResistDiff;
|
||||||
|
|
||||||
|
if(caster->GetSpecialAbility(CASTING_RESIST_DIFF))
|
||||||
|
resist_modifier += caster->GetSpecialAbilityParam(CASTING_RESIST_DIFF, 0);
|
||||||
|
|
||||||
int focus_resist = caster->GetFocusEffect(focusResistRate, spell_id);
|
int focus_resist = caster->GetFocusEffect(focusResistRate, spell_id);
|
||||||
resist_modifier -= 2 * focus_resist;
|
resist_modifier -= 2 * focus_resist;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user