mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Merge fix
This commit is contained in:
@@ -439,7 +439,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
{
|
||||
|
||||
float x, y, z, heading;
|
||||
const char *target_zone;
|
||||
const char *target_zone = nullptr;
|
||||
|
||||
x = static_cast<float>(spell.base[1]);
|
||||
y = static_cast<float>(spell.base[0]);
|
||||
@@ -511,7 +511,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
case SE_Teleport2:
|
||||
{
|
||||
float x, y, z, heading;
|
||||
const char *target_zone;
|
||||
const char *target_zone = nullptr;
|
||||
|
||||
x = static_cast<float>(spell.base[1]);
|
||||
y = static_cast<float>(spell.base[0]);
|
||||
@@ -1724,7 +1724,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
#endif
|
||||
// can only summon corpses of clients
|
||||
if(!IsNPC()) {
|
||||
Client* TargetClient = 0;
|
||||
Client* TargetClient = nullptr;
|
||||
if(this->GetTarget())
|
||||
TargetClient = this->GetTarget()->CastToClient();
|
||||
else
|
||||
@@ -2677,7 +2677,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
case SE_Taunt:
|
||||
{
|
||||
if (caster && IsNPC()){
|
||||
caster->Taunt(this->CastToNPC(), false, static_cast<float>(spell.base[i]), true, spell.base2[i]);
|
||||
caster->Taunt(this->CastToNPC(), false, spell.base[i], true, spell.base2[i]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -5178,7 +5178,7 @@ uint16 Client::GetSympatheticFocusEffect(focusType type, uint16 spell_id) {
|
||||
//item focus
|
||||
if (itembonuses.FocusEffects[type]){
|
||||
|
||||
const EQEmu::ItemData* TempItem = 0;
|
||||
const EQEmu::ItemData* TempItem = nullptr;
|
||||
|
||||
for (int x = EQEmu::legacy::EQUIPMENT_BEGIN; x <= EQEmu::legacy::EQUIPMENT_END; x++)
|
||||
{
|
||||
@@ -5307,8 +5307,8 @@ int16 Client::GetFocusEffect(focusType type, uint16 spell_id)
|
||||
//Check if item focus effect exists for the client.
|
||||
if (itembonuses.FocusEffects[type]){
|
||||
|
||||
const EQEmu::ItemData* TempItem = 0;
|
||||
const EQEmu::ItemData* UsedItem = 0;
|
||||
const EQEmu::ItemData* TempItem = nullptr;
|
||||
const EQEmu::ItemData* UsedItem = nullptr;
|
||||
uint16 UsedFocusID = 0;
|
||||
int16 Total = 0;
|
||||
int16 focus_max = 0;
|
||||
@@ -5579,8 +5579,8 @@ int16 NPC::GetFocusEffect(focusType type, uint16 spell_id) {
|
||||
|
||||
if (RuleB(Spells, NPC_UseFocusFromItems) && itembonuses.FocusEffects[type]){
|
||||
|
||||
const EQEmu::ItemData* TempItem = 0;
|
||||
const EQEmu::ItemData* UsedItem = 0;
|
||||
const EQEmu::ItemData* TempItem = nullptr;
|
||||
const EQEmu::ItemData* UsedItem = nullptr;
|
||||
uint16 UsedFocusID = 0;
|
||||
int16 Total = 0;
|
||||
int16 focus_max = 0;
|
||||
|
||||
Reference in New Issue
Block a user