heroic op spells are recognized as such with ProcessSpell (in_heroic_op)
This commit is contained in:
parent
00ed1f99a9
commit
4286879e08
@ -220,13 +220,11 @@ void SpellProcess::Process(){
|
|||||||
CastProcessedSpell(cast_timer->spell, false, cast_timer->in_heroic_opp);
|
CastProcessedSpell(cast_timer->spell, false, cast_timer->in_heroic_opp);
|
||||||
}
|
}
|
||||||
else if (cast_timer->entity_command) {
|
else if (cast_timer->entity_command) {
|
||||||
if (cast_timer->timer->Check(false)) {
|
|
||||||
cast_timer->delete_timer = true;
|
cast_timer->delete_timer = true;
|
||||||
Spawn* target = cast_timer->zone->GetSpawnByID(cast_timer->target_id);
|
Spawn* target = cast_timer->zone->GetSpawnByID(cast_timer->target_id);
|
||||||
CastProcessedEntityCommand(cast_timer->entity_command, cast_timer->caster, target, cast_timer->in_heroic_opp);
|
CastProcessedEntityCommand(cast_timer->entity_command, cast_timer->caster, target, cast_timer->in_heroic_opp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (cast_timer->delete_timer) {
|
if (cast_timer->delete_timer) {
|
||||||
safe_delete(cast_timer->timer);
|
safe_delete(cast_timer->timer);
|
||||||
if(cast_timer->spell && !cast_timer->spell->has_proc) {
|
if(cast_timer->spell && !cast_timer->spell->has_proc) {
|
||||||
@ -2019,7 +2017,7 @@ bool SpellProcess::CastProcessedSpell(LuaSpell* spell, bool passive, bool in_her
|
|||||||
MSoloHO.releasewritelock(__FUNCTION__, __LINE__);
|
MSoloHO.releasewritelock(__FUNCTION__, __LINE__);
|
||||||
|
|
||||||
if (ho_spell && ho_target != 0)
|
if (ho_spell && ho_target != 0)
|
||||||
client->GetCurrentZone()->ProcessSpell(ho_spell, client->GetPlayer(), spell->caster->GetZone()->GetSpawnByID(ho_target));
|
client->GetCurrentZone()->ProcessSpell(ho_spell, client->GetPlayer(), spell->caster->GetZone()->GetSpawnByID(ho_target), true, false, nullptr, 0, true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user