mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 13:57:16 +00:00
Support for spells_new field 'viral_range'
This commit is contained in:
1 parent
5afd6b8628
commit
adb8175654
3 files changed
+7
-4
No files matched your search
+1
-1
@@ -4349,7 +4349,7 @@ void Mob::SpreadVirus(uint16 spell_id, uint16 casterID)
|
||||
// Only spread in zones without perm buffs
|
||||
if(!zone->BuffTimersSuspended()) {
|
||||
for(int i = 0; i < num_targs; i++) {
|
||||
target = entity_list.GetTargetForVirus(this);
|
||||
target = entity_list.GetTargetForVirus(this, spells[spell_id].viral_range);
|
||||
if(target) {
|
||||
// Only spreads to the uninfected
|
||||
if(!target->FindBuff(spell_id)) {
|
||||
|
||||
Reference in new issue
Block a user