chore(Core/Misc): remove toxic language (#6988)
This commit is contained in:
@@ -150,7 +150,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
|||||||
case SMART_ACTION_TALK:
|
case SMART_ACTION_TALK:
|
||||||
{
|
{
|
||||||
ObjectList* targets = GetTargets(e, unit);
|
ObjectList* targets = GetTargets(e, unit);
|
||||||
Creature* talker = e.target.type == 0 ? me : nullptr; // xinef: tc retardness fix
|
Creature* talker = e.target.type == 0 ? me : nullptr;
|
||||||
Unit* talkTarget = nullptr;
|
Unit* talkTarget = nullptr;
|
||||||
if (targets)
|
if (targets)
|
||||||
{
|
{
|
||||||
@@ -3603,7 +3603,7 @@ ObjectList* SmartScript::GetTargets(SmartScriptHolder const& e, Unit* invoker /*
|
|||||||
l->assign(objectList->begin(), objectList->end());
|
l->assign(objectList->begin(), objectList->end());
|
||||||
}
|
}
|
||||||
|
|
||||||
// xinef: return l, retardness... what if list is empty? will return empty list instead of null pointer
|
// xinef: return l, what if list is empty? will return empty list instead of null pointer
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SMART_TARGET_CLOSEST_CREATURE:
|
case SMART_TARGET_CLOSEST_CREATURE:
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ void SmartAIMgr::LoadSmartAIFromDB()
|
|||||||
if (!IsEventValid(temp))
|
if (!IsEventValid(temp))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// xinef: specific check for timed events, fix db makers retardness
|
// xinef: specific check for timed events, fix db makers
|
||||||
switch (temp.event.type)
|
switch (temp.event.type)
|
||||||
{
|
{
|
||||||
case SMART_EVENT_UPDATE:
|
case SMART_EVENT_UPDATE:
|
||||||
|
|||||||
@@ -13000,7 +13000,7 @@ void Player::LearnTalent(uint32 talentId, uint32 talentRank)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// xinef: check amount of points spent in current talent tree
|
// xinef: check amount of points spent in current talent tree
|
||||||
// xinef: be smart and quick, not retarded like TC
|
// xinef: be smart and quick
|
||||||
uint32 spentPoints = 0;
|
uint32 spentPoints = 0;
|
||||||
if (talentInfo->Row > 0)
|
if (talentInfo->Row > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2582,7 +2582,7 @@ float Unit::CalculateLevelPenalty(SpellInfo const* spellProto) const
|
|||||||
|
|
||||||
float LvlPenalty = 0.0f;
|
float LvlPenalty = 0.0f;
|
||||||
|
|
||||||
// xinef: added brackets, trinity retards...
|
// xinef: added brackets
|
||||||
if (spellProto->SpellLevel < 20)
|
if (spellProto->SpellLevel < 20)
|
||||||
LvlPenalty = (20.0f - spellProto->SpellLevel) * 3.75f;
|
LvlPenalty = (20.0f - spellProto->SpellLevel) * 3.75f;
|
||||||
|
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ bool Vehicle::AddPassenger(Unit* unit, int8 seatId)
|
|||||||
unit->m_movementInfo.transport.seat = seat->first;
|
unit->m_movementInfo.transport.seat = seat->first;
|
||||||
unit->m_movementInfo.transport.guid = _me->GetGUID();
|
unit->m_movementInfo.transport.guid = _me->GetGUID();
|
||||||
|
|
||||||
// xinef: removed retarded seat->first == 0 check...
|
// xinef: removed seat->first == 0 check...
|
||||||
if (_me->GetTypeId() == TYPEID_UNIT
|
if (_me->GetTypeId() == TYPEID_UNIT
|
||||||
&& unit->GetTypeId() == TYPEID_PLAYER
|
&& unit->GetTypeId() == TYPEID_PLAYER
|
||||||
&& seat->second.SeatInfo->m_flags & VEHICLE_SEAT_FLAG_CAN_CONTROL)
|
&& seat->second.SeatInfo->m_flags & VEHICLE_SEAT_FLAG_CAN_CONTROL)
|
||||||
|
|||||||
@@ -4359,7 +4359,7 @@ void AuraEffect::HandleAuraModIncreaseHealthPercent(AuraApplication const* aurAp
|
|||||||
float percent = target->GetHealthPct();
|
float percent = target->GetHealthPct();
|
||||||
target->HandleStatModifier(UNIT_MOD_HEALTH, TOTAL_PCT, float(GetAmount()), apply);
|
target->HandleStatModifier(UNIT_MOD_HEALTH, TOTAL_PCT, float(GetAmount()), apply);
|
||||||
|
|
||||||
// Xinef: idiots, pct was rounded down and could "kill" creature by setting its health to 0 making npc zombie
|
// Xinef: pct was rounded down and could "kill" creature by setting its health to 0 making npc zombie
|
||||||
if (target->IsAlive())
|
if (target->IsAlive())
|
||||||
if (uint32 healthAmount = CalculatePct(target->GetMaxHealth(), percent))
|
if (uint32 healthAmount = CalculatePct(target->GetMaxHealth(), percent))
|
||||||
target->SetHealth(healthAmount);
|
target->SetHealth(healthAmount);
|
||||||
|
|||||||
@@ -2712,7 +2712,7 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit* unit, uint32 effectMask, bool scaleA
|
|||||||
{
|
{
|
||||||
if (unit->IsImmunedToSpellEffect(m_spellInfo, effectNumber))
|
if (unit->IsImmunedToSpellEffect(m_spellInfo, effectNumber))
|
||||||
effectMask &= ~(1 << effectNumber);
|
effectMask &= ~(1 << effectNumber);
|
||||||
// Xinef: What retarded added this shit? Buggs out polymorph
|
// Xinef: Buggs out polymorph
|
||||||
// Xinef: And this is checked in MagicSpellHitResult, why we check resistance twice?
|
// Xinef: And this is checked in MagicSpellHitResult, why we check resistance twice?
|
||||||
// Xinef: And why we check every spell effect basing on rand and generic dispel info? some effects will be appliend and some wont? WTF?
|
// Xinef: And why we check every spell effect basing on rand and generic dispel info? some effects will be appliend and some wont? WTF?
|
||||||
/*else if (m_spellInfo->Effects[effectNumber].IsAura() && !m_spellInfo->IsPositiveEffect(effectNumber))
|
/*else if (m_spellInfo->Effects[effectNumber].IsAura() && !m_spellInfo->IsPositiveEffect(effectNumber))
|
||||||
@@ -3355,13 +3355,13 @@ SpellCastResult Spell::prepare(SpellCastTargets const* targets, AuraEffect const
|
|||||||
((m_targets.GetObjectTarget() && m_caster != m_targets.GetObjectTarget()) || m_spellInfo->IsPositive()))
|
((m_targets.GetObjectTarget() && m_caster != m_targets.GetObjectTarget()) || m_spellInfo->IsPositive()))
|
||||||
{
|
{
|
||||||
// Xinef: Creature should focus to cast target if there is explicit target or self if casting positive spell
|
// Xinef: Creature should focus to cast target if there is explicit target or self if casting positive spell
|
||||||
// Xinef: Creature should not rotate like a retard when casting spell... based on halion behavior
|
// Xinef: Creature should not rotate when casting spell... based on halion behavior
|
||||||
m_caster->ToCreature()->FocusTarget(this, m_targets.GetObjectTarget() != nullptr ? m_targets.GetObjectTarget() : m_caster);
|
m_caster->ToCreature()->FocusTarget(this, m_targets.GetObjectTarget() != nullptr ? m_targets.GetObjectTarget() : m_caster);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//item: first cast may destroy item and second cast causes crash
|
//item: first cast may destroy item and second cast causes crash
|
||||||
// xinef: removed !m_spellInfo->StartRecoveryTime because of TC retardiness
|
// xinef: removed !m_spellInfo->StartRecoveryTime
|
||||||
// second los check failed in events
|
// second los check failed in events
|
||||||
// xinef: removed itemguid check, currently there is no such item in database
|
// xinef: removed itemguid check, currently there is no such item in database
|
||||||
if (!m_casttime && /*!m_castItemGUID &&*/ GetCurrentContainer() == CURRENT_GENERIC_SPELL)
|
if (!m_casttime && /*!m_castItemGUID &&*/ GetCurrentContainer() == CURRENT_GENERIC_SPELL)
|
||||||
@@ -3640,9 +3640,9 @@ void Spell::_cast(bool skipCheck)
|
|||||||
if (modOwner)
|
if (modOwner)
|
||||||
modOwner->RemoveSpellMods(this);
|
modOwner->RemoveSpellMods(this);
|
||||||
|
|
||||||
// Xinef: Fucking retarded idiots, why do we keep focus after spell is sent to air?
|
// Xinef: why do we keep focus after spell is sent to air?
|
||||||
// Xinef: Because of this, in the middle of some animation after setting targetguid to 0 etc
|
// Xinef: Because of this, in the middle of some animation after setting targetguid to 0 etc
|
||||||
// Xinef: we get focused to it out of nowhere, idiots...
|
// Xinef: we get focused to it out of nowhere...
|
||||||
if (Creature* creatureCaster = m_caster->ToCreature())
|
if (Creature* creatureCaster = m_caster->ToCreature())
|
||||||
creatureCaster->ReleaseFocus(this);
|
creatureCaster->ReleaseFocus(this);
|
||||||
}
|
}
|
||||||
@@ -7032,7 +7032,7 @@ SpellCastResult Spell::CheckItems()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check weapon presence in slots for main/offhand weapons
|
// check weapon presence in slots for main/offhand weapons
|
||||||
if (/*Moar retardnes! never skip those checks !(_triggeredCastFlags & TRIGGERED_IGNORE_EQUIPPED_ITEM_REQUIREMENT) &&*/ m_spellInfo->EquippedItemClass >= 0)
|
if (/*never skip those checks !(_triggeredCastFlags & TRIGGERED_IGNORE_EQUIPPED_ITEM_REQUIREMENT) &&*/ m_spellInfo->EquippedItemClass >= 0)
|
||||||
{
|
{
|
||||||
// main hand weapon required
|
// main hand weapon required
|
||||||
if (m_spellInfo->HasAttribute(SPELL_ATTR3_REQUIRES_MAIN_HAND_WEAPON))
|
if (m_spellInfo->HasAttribute(SPELL_ATTR3_REQUIRES_MAIN_HAND_WEAPON))
|
||||||
|
|||||||
@@ -3919,7 +3919,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}*/
|
}*/
|
||||||
/* disabled for now, was being abused by idiots
|
/* disabled for now, was being abused
|
||||||
// 5,000 Gold
|
// 5,000 Gold
|
||||||
case 46642:
|
case 46642:
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -586,7 +586,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tc idiots, they use updateAI, while we have movementinform :)
|
// tc use updateAI, while we have movementinform :)
|
||||||
void MovementInform(uint32 type, uint32 /*param*/) override
|
void MovementInform(uint32 type, uint32 /*param*/) override
|
||||||
{
|
{
|
||||||
if (type == POINT_MOTION_TYPE)
|
if (type == POINT_MOTION_TYPE)
|
||||||
@@ -786,7 +786,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tc idiots, they use updateAI, while we have movementinform :)
|
// tc they use updateAI, while we have movementinform :)
|
||||||
void MovementInform(uint32 type, uint32 /*param*/) override
|
void MovementInform(uint32 type, uint32 /*param*/) override
|
||||||
{
|
{
|
||||||
if (type == POINT_MOTION_TYPE)
|
if (type == POINT_MOTION_TYPE)
|
||||||
|
|||||||
Reference in New Issue
Block a user