mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 11:48:37 +00:00
rampage updates (#1882)
This commit is contained in:
+10
-3
@@ -2209,9 +2209,16 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
#ifdef SPELL_EFFECT_SPAM
|
||||
snprintf(effect_desc, _EDLEN, "Rampage");
|
||||
#endif
|
||||
if(caster)
|
||||
entity_list.AEAttack(caster, 30, EQ::invslot::slotPrimary, 0, true); // on live wars dont get a duration ramp, its a one shot deal
|
||||
|
||||
//defulat live range is 40, with 1 attack per round, no hit count limit
|
||||
float rampage_range = 40;
|
||||
if (spells[spell_id].aoe_range) {
|
||||
rampage_range = spells[spell_id].aoe_range; //added for expanded functionality
|
||||
}
|
||||
int attack_count = spells[spell_id].base_value[i]; //added for expanded functionality
|
||||
int hit_count = spells[spell_id].limit_value[i]; //added for expanded functionality
|
||||
if (caster) {
|
||||
entity_list.AEAttack(caster, rampage_range, EQ::invslot::slotPrimary, hit_count, true, attack_count); // on live wars dont get a duration ramp, its a one shot deal
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user