mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core: Fix warnings
This commit is contained in:
@@ -3052,12 +3052,12 @@ void Spell::prepare(SpellCastTargets const* targets, AuraEffect const* triggered
|
||||
|
||||
if (Player* player = m_caster->ToPlayer())
|
||||
{
|
||||
if (!m_caster->ToPlayer()->GetCommandStatus(CHEAT_CASTTIME))
|
||||
if (!player->GetCommandStatus(CHEAT_CASTTIME))
|
||||
{
|
||||
m_caster->ToPlayer()->SetSpellModTakingSpell(this, true);
|
||||
player->SetSpellModTakingSpell(this, true);
|
||||
// calculate cast time (calculated after first CheckCast check to prevent charge counting for first CheckCast fail)
|
||||
m_casttime = m_spellInfo->CalcCastTime(this);
|
||||
m_caster->ToPlayer()->SetSpellModTakingSpell(this, false);
|
||||
player->SetSpellModTakingSpell(this, false);
|
||||
}
|
||||
else
|
||||
m_casttime = 0; // Set cast time to 0 if .cheat casttime is enabled.
|
||||
|
||||
@@ -149,7 +149,6 @@ class spell_hun_ascpect_of_the_viper : public SpellScriptLoader
|
||||
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
// Hunter T7 4P Bonus
|
||||
Unit* target = GetTarget();
|
||||
if (GetTarget()->HasAura(SPELL_HUNTER_VIPER_ATTACK_SPEED))
|
||||
GetTarget()->RemoveAurasDueToSpell(SPELL_HUNTER_VICIOUS_VIPER);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user