mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 11:28:25 +00:00
[Spells] AE Duration effect (Rains) will now work with Target Ring and PBAE spells. (#2000)
* done * Update beacon.cpp * [Spells] AE Duration effect (Rains) will now work with Target Ring and PBAE spells. Mackals suggestions implemented.
This commit is contained in:
+12
-3
@@ -364,10 +364,19 @@ bool IsImprovedDamageSpell(uint16 spell_id)
|
||||
|
||||
bool IsAEDurationSpell(uint16 spell_id)
|
||||
{
|
||||
if (IsValidSpell(spell_id) &&
|
||||
(spells[spell_id].target_type == ST_AETarget || spells[spell_id].target_type == ST_UndeadAE) &&
|
||||
spells[spell_id].aoe_duration != 0)
|
||||
/*
|
||||
There are plenty of spells with aoe_duration set at single digit numbers, but these
|
||||
do not act as duration effects.
|
||||
*/
|
||||
if (IsValidSpell(spell_id) &&
|
||||
spells[spell_id].aoe_duration >= 2500 &&
|
||||
( spells[spell_id].target_type == ST_AETarget ||
|
||||
spells[spell_id].target_type == ST_UndeadAE ||
|
||||
spells[spell_id].target_type == ST_AECaster ||
|
||||
spells[spell_id].target_type == ST_Ring)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user