Skip to content

Commit

Permalink
Revert por Cagada Hellsing pasar y pasar parches malos
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Sep 11, 2012
1 parent bda5575 commit 7120423
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 31 deletions.
Expand Up @@ -292,7 +292,7 @@ class boss_black_knight : public CreatureScript
if (uiDeathBiteTimer <= diff)
{
DoCastAOE(SPELL_DEATH_BITE);
uiDeathBiteTimer = urand (1000, 2000);
uiDeathBiteTimer = urand (2000, 4000);
} else uiDeathBiteTimer -= diff;
if (uiMarkedDeathTimer <= diff)
{
Expand Down
Expand Up @@ -255,6 +255,7 @@ class boss_deathbringer_saurfang : public CreatureScript
void Reset()
{
_Reset();
me->SetReactState(REACT_DEFENSIVE);
events.SetPhase(PHASE_COMBAT);
_frenzied = false;
_dead = false;
Expand Down Expand Up @@ -452,8 +453,6 @@ class boss_deathbringer_saurfang : public CreatureScript
events.SetPhase(PHASE_COMBAT);
_introDone = true;
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC);
me->SetReactState(REACT_AGGRESSIVE);
me->SetInCombatWithZone();
break;
case EVENT_SUMMON_BLOOD_BEAST:
for (uint32 i10 = 0; i10 < 2; ++i10)
Expand Down
10 changes: 1 addition & 9 deletions src/server/scripts/Northrend/IcecrownCitadel/boss_festergut.cpp
Expand Up @@ -90,6 +90,7 @@ class boss_festergut : public CreatureScript
void Reset()
{
_Reset();
me->SetReactState(REACT_DEFENSIVE);
events.ScheduleEvent(EVENT_BERSERK, 300000);
events.ScheduleEvent(EVENT_INHALE_BLIGHT, urand(25000, 30000));
events.ScheduleEvent(EVENT_GAS_SPORE, urand(20000, 25000));
Expand Down Expand Up @@ -160,15 +161,6 @@ class boss_festergut : public CreatureScript
if (spell->Id == PUNGENT_BLIGHT_HELPER)
target->RemoveAurasDueToSpell(INOCULATED_HELPER);
}

void MoveInLineOfSight(Unit* who)
{
if (me->IsWithinDistInMap(who, 20.0f))
{
me->SetReactState(REACT_AGGRESSIVE);
me->SetInCombatWithZone();
}
}

void UpdateAI(uint32 const diff)
{
Expand Down
Expand Up @@ -145,11 +145,6 @@ class boss_lord_marrowgar : public CreatureScript
Talk(SAY_ENTER_ZONE);
_introDone = true;
}
else if (me->IsWithinDistInMap(who, 20.0f))
{
me->SetReactState(REACT_AGGRESSIVE);
me->SetInCombatWithZone();
}
}

void UpdateAI(uint32 const diff)
Expand Down Expand Up @@ -323,7 +318,7 @@ class npc_coldflame : public CreatureScript
}

me->SetOrientation(owner->GetAngle(target));
owner->GetNearPosition(pos, owner->GetObjectSize() / 20.0f, 0.0f);
owner->GetNearPosition(pos, owner->GetObjectSize() / 2.0f, 0.0f);
}

me->NearTeleportTo(pos.GetPositionX(), pos.GetPositionY(), me->GetPositionZ(), me->GetOrientation());
Expand Down Expand Up @@ -572,12 +567,7 @@ class spell_marrowgar_bone_storm : public SpellScriptLoader

void RecalculateDamage()
{
if (Unit* caster = GetCaster())
{
const float distance = GetHitUnit()->GetExactDist2d(caster);
const int32 damage = GetHitDamage();
SetHitDamage(int32(damage - (damage * distance / (distance + caster->GetObjectSize() / 2))));
}
SetHitDamage(int32(GetHitDamage() / std::max(sqrtf(GetHitUnit()->GetExactDist2d(GetCaster())), 1.0f)));
}

void Register()
Expand Down
Expand Up @@ -221,7 +221,7 @@ class boss_professor_putricide : public CreatureScript
summons.DespawnAll();
SetPhase(PHASE_COMBAT_1);
_experimentState = EXPERIMENT_STATE_OOZE;
me->SetReactState(REACT_AGGRESSIVE);
me->SetReactState(REACT_DEFENSIVE);
me->SetWalk(false);
if (me->GetMotionMaster()->GetCurrentMovementGeneratorType() == POINT_MOTION_TYPE)
me->GetMotionMaster()->MovementExpired();
Expand Down
8 changes: 2 additions & 6 deletions src/server/scripts/Northrend/IcecrownCitadel/boss_rotface.cpp
Expand Up @@ -157,13 +157,9 @@ class boss_rotface : public CreatureScript
Talk(SAY_SLIME_SPRAY);
}

void MoveInLineOfSight(Unit* who)
void MoveInLineOfSight(Unit* /*who*/)
{
if (me->IsWithinDistInMap(who, 20.0f))
{
me->SetReactState(REACT_AGGRESSIVE);
me->SetInCombatWithZone();
}
// don't enter combat
}

void UpdateAI(const uint32 diff)
Expand Down

0 comments on commit 7120423

Please sign in to comment.