Pets should be affected by weapon specific buffs.
Contributed by Sahar.
This commit is contained in:
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
@@ -45,11 +45,16 @@ public class ConditionUsingItemType extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
if ((effector == null) || !effector.isPlayer())
|
||||
if (effector == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!effector.isPlayer())
|
||||
{
|
||||
return _armor ? false : (_mask & effector.getAttackType().mask()) != 0;
|
||||
}
|
||||
|
||||
final Inventory inv = effector.getInventory();
|
||||
// If ConditionUsingItemType is one between Light, Heavy or Magic
|
||||
if (_armor)
|
||||
|
Reference in New Issue
Block a user